Enable configuration to disable http2
This commit is contained in:
parent
23d16a4451
commit
2d7acf33c4
2 changed files with 7 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ http {
|
|||
{{ range $server := .servers }}
|
||||
server {
|
||||
listen 80{{ if $cfg.useProxyProtocol }} proxy_protocol{{ end }};
|
||||
{{ if $server.SSL }}listen 443{{ if $cfg.useProxyProtocol }} proxy_protocol{{ end }} ssl http2;
|
||||
{{ if $server.SSL }}listen 443 {{ if $cfg.useProxyProtocol }}proxy_protocol{{ end }} ssl {{ if $cfg.useHttp2 }}http2{{ end }};
|
||||
{{/* comment PEM sha is required to detect changes in the generated configuration and force a reload */}}
|
||||
# PEM sha: {{ $server.SSLPemChecksum }}
|
||||
ssl_certificate {{ $server.SSLCertificate }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue