mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
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:
parent
4565481643
commit
467c10df60
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue