fix(backend): Replace deprecated http2 directive

This commit is contained in:
Lukas Jost 2024-10-16 15:39:45 +02:00
parent fe2d8895d6
commit a664e3f7b5
No known key found for this signature in database
GPG Key ID: 5D9FA6930B90910E

View File

@ -5,9 +5,15 @@
#listen [::]:80;
{% 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 %};
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 %}