diff --git a/backend/templates/_listen.conf b/backend/templates/_listen.conf index ad1c96ba03..b018a592c1 100644 --- a/backend/templates/_listen.conf +++ b/backend/templates/_listen.conf @@ -5,11 +5,14 @@ #listen [::]:80; {% endif %} {% if certificate -%} - listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; -{% if ipv6 -%} - listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; + listen 443 ssl; +{% if ipv6 -%}/ + listen [::]:443 ssl; {% else -%} #listen [::]:443; {% endif %} +{% endif %} +{% if http2_support == 1 or http2_support == true %} + http2 on; {% endif %} server_name {{ domain_names | join: " " }};