This commit is contained in:
Emilien Mantel
2016-01-12 15:10:43 +01:00
parent 2f6f2d4362
commit ef5a7bf756
4 changed files with 9 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ server {
{% endif %}
{% if 'https' in __proto %}
{% for port in __listen_ssl %}
listen {{ port }} ssl;
listen {{ port }} ssl{% if nginx_auto_config_httpv2 and 'http_v2' in nginx_modules.stdout_lines %}http2{% endif %};
{% endfor %}
{{ ssl(item.ssl_name) }}
include {{ nginx_helper_dir + '/ssl-' + item.ssl_template | default('strong') }};