This commit is contained in:
jwklijnsma 2024-02-27 11:44:49 +01:00 committed by GitHub
parent 198144da16
commit 2fde003525
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,24 +1,27 @@
{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%} {% if enable_proxy_protocol == 1 or enable_proxy_protocol == true %}
listen 88 proxy_protocol; listen 88 proxy_protocol;
{% if ipv6 -%} {% if ipv6 -%}
listen [::]:88 proxy_protocol; listen [::]:88 proxy_protocol;
{% endif %} {% endif %}
{% else -%} {% else %}
listen 80; listen 80;
{% if ipv6 -%} {% if ipv6 -%}
listen [::]:80; listen [::]:80;
{% endif %}
{% endif %} {% endif %}
{% endif %}
{% if certificate -%} {% if certificate %}
{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true%} {% if enable_proxy_protocol == 1 or enable_proxy_protocol == true %}
listen 444 ssl{% if http2_support %} http2{% endif %} proxy_protocol; listen 444 ssl{% if http2_support %} http2{% endif %} proxy_protocol;
{% if ipv6 -%} {% if ipv6 -%}
listen [::]:444 ssl{% if http2_support %} http2{% endif %} proxy_protocol; listen [::]:444 ssl{% if http2_support %} http2{% endif %} proxy_protocol;
{% endif %} {% endif %}
{% else -%} {% else %}
listen 443 ssl{% if http2_support %} http2{% endif %}; listen 443 ssl{% if http2_support %} http2{% endif %};
{% if ipv6 -%} {% if ipv6 -%}
listen [::]:443 ssl{% if http2_support %} http2{% endif %}; listen [::]:443 ssl{% if http2_support %} http2{% endif %};
{% endif %}
{% endif %}
{% endif %} {% endif %}
{% endif %}
server_name {{ domain_names | join: " " }}; server_name {{ domain_names | join: " " }};