Skip to content

Commit 326bcb0

Browse files
committed
Fixed issue where the HTTP2 support was always enabled in nginx config, no matter what the user configured.
1 parent 46d0944 commit 326bcb0

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/nginx-proxy-manager/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ log "Patching Nginx Proxy Manager backend..."
7777
patch -p1 -d /tmp/nginx-proxy-manager < "$SCRIPT_DIR"/pip-install.patch
7878
patch -p1 -d /tmp/nginx-proxy-manager < "$SCRIPT_DIR"/remove-certbot-dns-oci.patch
7979
patch -p1 -d /tmp/nginx-proxy-manager < "$SCRIPT_DIR"/powerdns-fix.patch
80+
patch -p1 -d /tmp/nginx-proxy-manager < "$SCRIPT_DIR"/http2-support-fix.conf
8081

8182
cp -r /tmp/nginx-proxy-manager /app
8283

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- nginx-proxy-manager-2.10.4/backend/templates/_listen.conf.orig 2023-12-09 10:51:50.551616517 -0500
2+
+++ nginx-proxy-manager-2.10.4/backend/templates/_listen.conf 2023-12-09 10:52:16.259672036 -0500
3+
@@ -5,9 +5,9 @@
4+
#listen [::]:80;
5+
{% endif %}
6+
{% if certificate -%}
7+
- listen 443 ssl{% if http2_support %} http2{% endif %};
8+
+ listen 443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
9+
{% if ipv6 -%}
10+
- listen [::]:443 ssl{% if http2_support %} http2{% endif %};
11+
+ listen [::]:443 ssl{% if http2_support == 1 or http2_support == true %} http2{% endif %};
12+
{% else -%}
13+
#listen [::]:443;
14+
{% endif %}

0 commit comments

Comments
 (0)