Add http/2 support to API server (#5149)

fix issue #5148

Signed-off-by: Kamil Madac <kamil.madac@gmail.com>
This commit is contained in:
Kamil Madac 2022-03-01 20:27:52 +01:00 committed by GitHub
parent 3531df3f31
commit 333248466b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,7 @@ func (c *Cluster) newListener(ctx context.Context) (net.Listener, http.Handler,
ClientAuth: tls.RequestClientCert,
MinVersion: c.config.TLSMinVersion,
CipherSuites: c.config.TLSCipherSuites,
NextProtos: []string{"h2", "http/1.1"},
},
RegenerateCerts: func() bool {
const regenerateDynamicListenerFile = "dynamic-cert-regenerate"