From 6b35028345fad59c54ef9df9d7826b30bf342d39 Mon Sep 17 00:00:00 2001 From: Ludovic LEROUX Date: Wed, 20 Apr 2022 11:33:08 +0200 Subject: [PATCH] Enable AllowH2C parameter on HTTPS server --- jsonconf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsonconf.go b/jsonconf.go index 520353a..7d9c055 100644 --- a/jsonconf.go +++ b/jsonconf.go @@ -77,7 +77,8 @@ func (cc *App) generateHTTPAndTLSAppConfFromConsulServices(conf *caddy.Config) ( Listen: []string{ fmt.Sprintf(":%d", cc.AutoReverseProxy.DefaultHTTPServerOptions.HTTPSPort), }, - Routes: caddyhttp.RouteList{cc.getAuthRoute()}, + Routes: caddyhttp.RouteList{cc.getAuthRoute()}, + AllowH2C: true, }, }, }