From 400c042c4a4ea8646b1370c2548e33bfb0ca368a Mon Sep 17 00:00:00 2001 From: HuangHuiKang Date: Thu, 12 Mar 2026 10:33:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/nginx.conf b/nginx.conf index 51e2fbe7..b0df75fe 100644 --- a/nginx.conf +++ b/nginx.conf @@ -80,16 +80,6 @@ server { proxy_set_header X-Real-IP $remote_addr; } - location /besure/ { - proxy_pass http://ngsk.tech:39001/; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_http_version 1.1; - proxy_buffering off; - } - location / { root /usr/share/nginx/html; index index.html index.htm; @@ -100,4 +90,18 @@ server { location = /50x.html { root /usr/share/nginx/html; } + + server { + listen 39002; + server_name localhost; + + location /besure/ { + proxy_pass http://ngsk.tech:39001/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; + proxy_buffering off; + } + } } \ No newline at end of file