fix: 修复 API 代理路径,去掉多余的 /api 前缀
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
🤖 Generated with Claude Code
This commit is contained in:
@@ -17,7 +17,7 @@ server {
|
|||||||
|
|
||||||
# API 代理到后端(直接访问宿主机上的后端服务)
|
# API 代理到后端(直接访问宿主机上的后端服务)
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://172.21.0.1:8123/api/;
|
proxy_pass http://172.21.0.1:8123/;
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user