This commit is contained in:
2026-09-14 11:25:41 +08:00
parent 8dd921570f
commit 148d5bdd51
4 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ server {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# 透传上游X-Forwarded-For(不追加本机IP);无上游头时回退到直连IP
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Connection "";
proxy_connect_timeout 60s;