Skip to content

Commit

Permalink
Merge pull request #9 from Inpher/ludo/upstream-scheme
Browse files Browse the repository at this point in the history
Enable AllowH2C parameter on HTTPS server
  • Loading branch information
Ludovic Leroux authored Apr 20, 2022
2 parents 137b12a + 6b35028 commit d39ac18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsonconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}
Expand Down

0 comments on commit d39ac18

Please sign in to comment.