mirror of
https://github.com/containous/traefik.git
synced 2025-03-14 00:58:23 +03:00
Ensure HTTP/2 enabled
This commit is contained in:
parent
558b31f4d9
commit
00c7e5c72b
@ -383,6 +383,9 @@ func (server *Server) createTLSConfig(entryPointName string, tlsOption *TLS, rou
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// ensure http2 enabled
|
||||
config.NextProtos = []string{"h2", "http/1.1"}
|
||||
|
||||
if len(tlsOption.ClientCAFiles) > 0 {
|
||||
pool := x509.NewCertPool()
|
||||
for _, caFile := range tlsOption.ClientCAFiles {
|
||||
|
Loading…
x
Reference in New Issue
Block a user