Skip to content

Commit eaf6335

Browse files
authored
Merge pull request NginxProxyManager#4106 from dreik/develop
http2 directive migration
2 parents ffe05eb + d7e0558 commit eaf6335

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

backend/templates/_listen.conf

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55
#listen [::]:80;
66
{% endif %}
77
{% if certificate -%}
8-
listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
8+
listen 443 ssl;
99
{% if ipv6 -%}
10-
listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
10+
listen [::]:443 ssl;
1111
{% else -%}
1212
#listen [::]:443;
1313
{% endif %}
1414
{% endif %}
1515
server_name {{ domain_names | join: " " }};
16+
{% if http2_support == 1 or http2_support == true %}
17+
http2 on;
18+
{% else -%}
19+
http2 off;
20+
{% endif %}

0 commit comments

Comments
 (0)