Remove http2 deprecated arg

This commit is contained in:
Ricardo Katz 2024-01-25 23:09:42 -03:00
parent de1f52afee
commit 234e333d6f
2 changed files with 5 additions and 5 deletions

View file

@ -1502,12 +1502,8 @@ func httpsListener(addresses []string, co string, tc *config.TemplateConfig) []s
}
lo = append(lo, co, "ssl")
if tc.Cfg.UseHTTP2 {
lo = append(lo, "http2")
}
lo = append(lo, ";")
out = append(out, strings.Join(lo, " "))
}

View file

@ -658,6 +658,10 @@ http {
server {
server_name {{ buildServerName $server.Hostname }} {{range $server.Aliases }}{{ . }} {{ end }};
{{ if $cfg.UseHTTP2 }}
http2 on;
{{ end }}
{{ if gt (len $cfg.BlockUserAgents) 0 }}
if ($block_ua) {
return 403;