mirror of
https://github.com/traefik/traefik.git
synced 2025-11-29 14:41:15 +01: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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ensure http2 enabled
|
||||||
|
config.NextProtos = []string{"h2", "http/1.1"}
|
||||||
|
|
||||||
if len(tlsOption.ClientCAFiles) > 0 {
|
if len(tlsOption.ClientCAFiles) > 0 {
|
||||||
pool := x509.NewCertPool()
|
pool := x509.NewCertPool()
|
||||||
for _, caFile := range tlsOption.ClientCAFiles {
|
for _, caFile := range tlsOption.ClientCAFiles {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user