1
0
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:
Emile Vauge 2016-11-09 17:56:41 +01:00
parent 558b31f4d9
commit 00c7e5c72b
No known key found for this signature in database
GPG Key ID: D808B4C167352E59

View File

@ -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 {