This commit is contained in:
Administrator
2024-05-15 16:42:04 +08:00
parent f1b8f41318
commit cd59a9ce4d

View File

@@ -10,7 +10,7 @@ server {
# API转发 # API转发
location /api { location /api {
proxy_pass http://192.168.202.220:9100; # 将 /api 的请求转发到 http://127.0.0.1:9100 proxy_pass http://192.168.202.220:9100/; # 将 /api 的请求转发到 http://127.0.0.1:9100
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;