Change Nginx to listen on ports 8080 and 8443

This commit is contained in:
xiexq0 2026-06-24 09:02:49 +08:00 committed by GitHub
parent 76f09db610
commit fe18eb00be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;