Enable configuration to disable http2

This commit is contained in:
Manuel de Brito Fontes 2016-05-12 07:48:37 -03:00
parent 23d16a4451
commit 2d7acf33c4
2 changed files with 7 additions and 1 deletions

View file

@ -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 }};