Skip to content

Commit 965873a

Browse files
authored
Merge pull request #3377 from jlesage/http2-support-fix
Fixed issue where the HTTP2 support was always enabled in nginx config
2 parents 5de95a8 + ccf9cce commit 965873a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/templates/_listen.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#listen [::]:80;
66
{% endif %}
77
{% if certificate -%}
8-
listen 443 ssl{% if http2_support %} http2{% endif %};
8+
listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
99
{% if ipv6 -%}
10-
listen [::]:443 ssl{% if http2_support %} http2{% endif %};
10+
listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
1111
{% else -%}
1212
#listen [::]:443;
1313
{% endif %}

0 commit comments

Comments
 (0)