From fe18eb00be7f370ef678039aafdd54407f424620 Mon Sep 17 00:00:00 2001 From: xiexq0 <8415167+xiexq0@users.noreply.github.com> Date: Wed, 24 Jun 2026 09:02:49 +0800 Subject: [PATCH 1/4] Change Nginx to listen on ports 8080 and 8443 --- docker/rootfs/etc/nginx/conf.d/default.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/rootfs/etc/nginx/conf.d/default.conf b/docker/rootfs/etc/nginx/conf.d/default.conf index b3f61ebcb8..fd3c42226d 100644 --- a/docker/rootfs/etc/nginx/conf.d/default.conf +++ b/docker/rootfs/etc/nginx/conf.d/default.conf @@ -1,11 +1,11 @@ # "You are not configured" page, which is the default if another default doesn't exist server { - listen 80; - listen [::]:80; + listen 8080; + listen [::]:8080; set $forward_scheme "http"; set $server "127.0.0.1"; - set $port "80"; + set $port "8080"; server_name localhost-nginx-proxy-manager; access_log /data/logs/fallback_http_access.log standard; @@ -20,14 +20,14 @@ server { } } -# First 443 Host, which is the default if another default doesn't exist +# First 8443 Host, which is the default if another default doesn't exist server { - listen 443 ssl; - listen [::]:443 ssl; + listen 8443 ssl; + listen [::]:8443 ssl; set $forward_scheme "https"; set $server "127.0.0.1"; - set $port "443"; + set $port "8443"; server_name localhost; access_log /data/logs/fallback_http_access.log standard; From 7ca03d52978f93420ec0d113a64735f8ce8a6212 Mon Sep 17 00:00:00 2001 From: xiexq0 <8415167+xiexq0@users.noreply.github.com> Date: Wed, 24 Jun 2026 09:35:47 +0800 Subject: [PATCH 2/4] Change Nginx port from 81 to 8081 --- docker/rootfs/etc/nginx/conf.d/dev.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/rootfs/etc/nginx/conf.d/dev.conf b/docker/rootfs/etc/nginx/conf.d/dev.conf index 67efc0f8a9..a0d717fc2c 100644 --- a/docker/rootfs/etc/nginx/conf.d/dev.conf +++ b/docker/rootfs/etc/nginx/conf.d/dev.conf @@ -1,6 +1,6 @@ server { - listen 81 default; - listen [::]:81 default; + listen 8081 default; + listen [::]:8081 default; server_name nginxproxymanager-dev; root /app/frontend/dist; From 4a239b3cd9356055c1eb45b57060539e7d4aa7ff Mon Sep 17 00:00:00 2001 From: xiexq0 <8415167+xiexq0@users.noreply.github.com> Date: Wed, 24 Jun 2026 09:36:18 +0800 Subject: [PATCH 3/4] Change Nginx to listen on port 8081 --- docker/rootfs/etc/nginx/conf.d/production.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/rootfs/etc/nginx/conf.d/production.conf b/docker/rootfs/etc/nginx/conf.d/production.conf index 877e51dda2..a350716b91 100644 --- a/docker/rootfs/etc/nginx/conf.d/production.conf +++ b/docker/rootfs/etc/nginx/conf.d/production.conf @@ -1,7 +1,7 @@ # Admin Interface server { - listen 81 default; - listen [::]:81 default; + listen 8081 default; + listen [::]:8081 default; server_name nginxproxymanager; root /app/frontend; From eed149848080dc471b636c5e4f4e96bedf275db9 Mon Sep 17 00:00:00 2001 From: xiexq0 <8415167+xiexq0@users.noreply.github.com> Date: Wed, 24 Jun 2026 09:37:46 +0800 Subject: [PATCH 4/4] Change exposed ports in Dockerfile --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 01b478b0e1..216410ab68 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -35,7 +35,7 @@ RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \ COPY docker/scripts/install-s6 /tmp/install-s6 RUN /tmp/install-s6 "${TARGETPLATFORM}" && rm -f /tmp/install-s6 -EXPOSE 80 81 443 +EXPOSE 8080 8081 8443 COPY backend /app COPY frontend/dist /app/frontend