_listen.conf 347 B

123456789101112131415
  1. listen 80;
  2. {% if ipv6 -%}
  3. listen [::]:80;
  4. {% else -%}
  5. #listen [::]:80;
  6. {% endif %}
  7. {% if certificate -%}
  8. listen 443 ssl{% if http2_support %} http2{% endif %};
  9. {% if ipv6 -%}
  10. listen [::]:443 ssl{% if http2_support %} http2{% endif %};
  11. {% else -%}
  12. #listen [::]:443;
  13. {% endif %}
  14. {% endif %}
  15. server_name {{ domain_names | join: " " }};