1234567891011121314151617181920 |
- listen 80;
- {% if ipv6 -%}
- listen [::]:80;
- {% else -%}
- #listen [::]:80;
- {% endif %}
- {% if certificate -%}
- listen 443 ssl;
- {% if ipv6 -%}
- listen [::]:443 ssl;
- {% else -%}
- #listen [::]:443;
- {% endif %}
- {% endif %}
- server_name {{ domain_names | join: " " }};
- {% if http2_support == 1 or http2_support == true %}
- http2 on;
- {% else -%}
- http2 off;
- {% endif %}
|