_listen.conf 370 B

1234567891011121314151617181920
  1. listen 80;
  2. {% if ipv6 -%}
  3. listen [::]:80;
  4. {% else -%}
  5. #listen [::]:80;
  6. {% endif %}
  7. {% if certificate -%}
  8. listen 443 ssl;
  9. {% if ipv6 -%}
  10. listen [::]:443 ssl;
  11. {% else -%}
  12. #listen [::]:443;
  13. {% endif %}
  14. {% endif %}
  15. server_name {{ domain_names | join: " " }};
  16. {% if http2_support == 1 or http2_support == true %}
  17. http2 on;
  18. {% else -%}
  19. http2 off;
  20. {% endif %}