Skip to content

Commit

Permalink
Merge pull request #10 from Inpher/ludo/upstream-scheme
Browse files Browse the repository at this point in the history
Enable http/2 on top of h2c for grpc
  • Loading branch information
Ludovic Leroux authored Apr 20, 2022
2 parents d39ac18 + 1ff610b commit 3ccdc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (cc *App) generateHTTPAndTLSAppConfFromConsulServices(conf *caddy.Config) (
reverseProxyHandler.TransportRaw = caddyconfig.JSONModuleObject(transport, "protocol", "http", nil)
} else if options.UpstreamsScheme == "grpc" {
transport := reverseproxy.HTTPTransport{
Versions: []string{"h2c"},
Versions: []string{"h2c", "2"},
}
reverseProxyHandler.TransportRaw = caddyconfig.JSONModuleObject(transport, "protocol", "http", nil)
}
Expand Down

0 comments on commit 3ccdc6b

Please sign in to comment.