From 6e852f3528cd2d0afb189116708e1b9663a17e83 Mon Sep 17 00:00:00 2001 From: dxin Date: Fri, 7 Nov 2025 18:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/opt-server/to-s1-go.conf | 2 +- nginx/opt-server/to-s4-go.conf | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 nginx/opt-server/to-s4-go.conf diff --git a/nginx/opt-server/to-s1-go.conf b/nginx/opt-server/to-s1-go.conf index 12b51af..5c3694b 100644 --- a/nginx/opt-server/to-s1-go.conf +++ b/nginx/opt-server/to-s1-go.conf @@ -4,7 +4,7 @@ server { access_log /data/tengine/logs/to_s1_go_access.log; error_log /data/tengine/logs/to_s1_go_error.log; location / { - proxy_pass http://43.130.56.138:8100; # 反向代理到本地电脑的sit的8070 + proxy_pass http://43.130.56.138:8100; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/nginx/opt-server/to-s4-go.conf b/nginx/opt-server/to-s4-go.conf new file mode 100644 index 0000000..8ff34a9 --- /dev/null +++ b/nginx/opt-server/to-s4-go.conf @@ -0,0 +1,15 @@ +server { + listen 8104; # 监听 8100 端口 + server_name 172.24.16.20; # 运维机 的公网 IP + access_log /data/tengine/logs/to_s4_go_access.log; + error_log /data/tengine/logs/to_s4_go_error.log; + location / { + proxy_pass http://43.130.56.138:8101; # 反向代理到本地电脑的sit的8070 + 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; + + client_max_body_size 300M; + } +}