Skip to content

Commit a664e3f

Browse files
committed
fix(backend): Replace deprecated http2 directive
1 parent fe2d889 commit a664e3f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

backend/templates/_listen.conf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
#listen [::]:80;
66
{% endif %}
77
{% if certificate -%}
8-
listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
9-
{% if ipv6 -%}
10-
listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
8+
listen 443 ssl;
9+
{% if http2_support == 1 or http2_support == true %}
10+
http2;
11+
{% endif %}
12+
{% if ipv6 -%}/
13+
listen [::]:443 ssl;
14+
{% if http2_support == 1 or http2_support == true %}
15+
http2;
16+
{% endif %}
1117
{% else -%}
1218
#listen [::]:443;
1319
{% endif %}

0 commit comments

Comments
 (0)