diff --git a/backend/templates/_listen.conf b/backend/templates/_listen.conf index 0bb2d02d..15f0c865 100644 --- a/backend/templates/_listen.conf +++ b/backend/templates/_listen.conf @@ -10,11 +10,15 @@ {% endif %} {% endif %} {% if certificate -%} - listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; +{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%} + listen 444 ssl{% if http2_support %} http2{% endif %} proxy_protocol; {% if ipv6 -%} - listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %}; + listen [::]:444 ssl{% if http2_support %} http2{% endif %} proxy_protocol; +{% endif %} {% else -%} - #listen [::]:443; + listen 443 ssl{% if http2_support %} http2{% endif %}; +{% if ipv6 -%} + listen [::]:443 ssl{% if http2_support %} http2{% endif %}; {% endif %} {% endif %} {% endif %}