Enable http/2 support

- As per [the documentation](https://pkg.go.dev/net/http#Serve), it
doesn't enable HTTP2 by-default, unless we enable it via the
`NextProtos` option.
This commit is contained in:
Gusted 2022-11-12 22:15:23 +01:00
parent 4565481643
commit 467c10df60
No known key found for this signature in database
GPG Key ID: FD821B732837125F

View File

@ -117,6 +117,7 @@ func TLSConfig(mainDomainSuffix string,
},
PreferServerCipherSuites: true,
NextProtos: []string{
"h2",
"http/1.1",
tlsalpn01.ACMETLS1Protocol,
},