Update _listen.conf

allow Listening of proxy protocol and HTTP at same time
This commit is contained in:
2022-06-25 13:17:02 +02:00
parent 41d8e78013
commit e6026d1f8c
+2 -4
View File
@@ -3,23 +3,21 @@
{% if ipv6 -%}
listen [::]:88 proxy_protocol;
{% endif %}
{% else -%}
{% endif %}
listen 80;
{% if ipv6 -%}
listen [::]:80;
{% endif %}
{% endif %}
{% if certificate -%}
{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%}
listen 444 ssl{% if http2_support %} http2{% endif %} proxy_protocol;
{% if ipv6 -%}
listen [::]:444 ssl{% if http2_support %} http2{% endif %} proxy_protocol;
{% endif %}
{% else -%}
{% endif %}
listen 443 ssl{% if http2_support %} http2{% endif %};
{% if ipv6 -%}
listen [::]:443 ssl{% if http2_support %} http2{% endif %};
{% endif %}
{% endif %}
{% endif %}
server_name {{ domain_names | join: " " }};