fix(backend): Add suggestions from PR review

This commit is contained in:
Lukas Jost 2024-10-24 19:48:47 +02:00
parent a664e3f7b5
commit e1a436e5ac
No known key found for this signature in database
GPG Key ID: 5D9FA6930B90910E

View File

@ -6,16 +6,13 @@
{% endif %}
{% if certificate -%}
listen 443 ssl;
{% if http2_support == 1 or http2_support == true %}
http2;
{% endif %}
{% if ipv6 -%}/
listen [::]:443 ssl;
{% if http2_support == 1 or http2_support == true %}
http2;
{% endif %}
{% else -%}
#listen [::]:443;
{% endif %}
{% endif %}
{% if http2_support == 1 or http2_support == true %}
http2 on;
{% endif %}
server_name {{ domain_names | join: " " }};