1 Commits
v4.0 ... v4.1

Author SHA1 Message Date
Gusted
3c61a39864 Enable http/2 support (#137)
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.

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/137
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-11-12 22:25:20 +01:00

View File

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