feat: time to bring back http2.0 support (#10230)

Bonus move our CI/CD to go1.14
This commit is contained in:
Harshavardhana
2020-08-10 09:02:29 -07:00
committed by GitHub
parent a49e3647b6
commit 1e2ebc9945
15 changed files with 347 additions and 280 deletions

View File

@@ -191,14 +191,7 @@ func NewServer(addrs []string, handler http.Handler, getCert certs.GetCertificat
// TLS hardening
PreferServerCipherSuites: true,
MinVersion: tls.VersionTLS12,
// Do not edit the next line, protos priority is kept
// on purpose in this manner for HTTP 2.0, we would
// still like HTTP 2.0 clients to negotiate connection
// to server if needed but by default HTTP 1.1 is
// expected. We need to change this in future
// when we wish to go back to HTTP 2.0 as default
// priority for HTTP protocol negotiation.
NextProtos: []string{"http/1.1", "h2"},
NextProtos: []string{"h2", "http/1.1"},
}
tlsConfig.GetCertificate = getCert
}