feat: 网站启用 https 增加 http2 配置 (#1491)

This commit is contained in:
zhengkunwang223 2023-06-29 18:44:15 +08:00 committed by GitHub
parent 2ff7726442
commit d4319fa55c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,9 +378,9 @@ func applySSL(website model.Website, websiteSSL model.WebsiteSSL, req request.We
}
config := nginxFull.SiteConfig.Config
server := config.FindServers()[0]
server.UpdateListen("443", website.DefaultServer, "ssl")
server.UpdateListen("443", website.DefaultServer, "ssl", "http2")
if website.IPV6 {
server.UpdateListen("[::]:443", website.DefaultServer, "ssl")
server.UpdateListen("[::]:443", website.DefaultServer, "ssl", "http2")
}
switch req.HttpConfig {