Remove http2 deprecated arg
This commit is contained in:
parent
de1f52afee
commit
234e333d6f
2 changed files with 5 additions and 5 deletions
|
@ -1502,12 +1502,8 @@ func httpsListener(addresses []string, co string, tc *config.TemplateConfig) []s
|
||||||
}
|
}
|
||||||
|
|
||||||
lo = append(lo, co, "ssl")
|
lo = append(lo, co, "ssl")
|
||||||
|
|
||||||
if tc.Cfg.UseHTTP2 {
|
|
||||||
lo = append(lo, "http2")
|
|
||||||
}
|
|
||||||
|
|
||||||
lo = append(lo, ";")
|
lo = append(lo, ";")
|
||||||
|
|
||||||
out = append(out, strings.Join(lo, " "))
|
out = append(out, strings.Join(lo, " "))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -658,6 +658,10 @@ http {
|
||||||
server {
|
server {
|
||||||
server_name {{ buildServerName $server.Hostname }} {{range $server.Aliases }}{{ . }} {{ end }};
|
server_name {{ buildServerName $server.Hostname }} {{range $server.Aliases }}{{ . }} {{ end }};
|
||||||
|
|
||||||
|
{{ if $cfg.UseHTTP2 }}
|
||||||
|
http2 on;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if gt (len $cfg.BlockUserAgents) 0 }}
|
{{ if gt (len $cfg.BlockUserAgents) 0 }}
|
||||||
if ($block_ua) {
|
if ($block_ua) {
|
||||||
return 403;
|
return 403;
|
||||||
|
|
Loading…
Reference in a new issue