Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support h2c URI scheme for reverse proxy upstream address #3628

Open
otbutz opened this issue Aug 4, 2020 · 1 comment · May be fixed by #3629
Open

Support h2c URI scheme for reverse proxy upstream address #3628

otbutz opened this issue Aug 4, 2020 · 1 comment · May be fixed by #3629

Comments

@otbutz
Copy link

@otbutz otbutz commented Aug 4, 2020

caddy 2.1.0 added support for HTTP2 cleartext connections but the syntax is a bit cumbersome:

https://grpc-api.example.com {
    reverse_proxy localhost:8080 {
        transport http {
            versions h2c 2
        }
    }
}

It would be nice if we could use h2c:// instead:

https://grpc-api.example.com {
    reverse_proxy h2c://localhost:8080
}

Traefik is using the same syntax: https://docs.traefik.io/user-guides/grpc/

@francislavoie
Copy link
Member

@francislavoie francislavoie commented Aug 4, 2020

This looked easy so I took a quick shot at it with #3629. Since h2c is still considered an experimental feature, this might not be accepted, FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.