commit | e449fa1ae408c68d53f0dce8b447a034f0ad20c1 | [log] [tgz] |
---|---|---|
author | Jiarenxiang <SingalJia@outlook.com> | Sun Jun 08 21:50:19 2025 +0800 |
committer | Jiarenxiang <SingalJia@outlook.com> | Sun Jun 08 21:50:19 2025 +0800 |
tree | da06c2fb2daafa2781d8ff17970088846c637eb1 | |
parent | 10fb672f33746c0e08a1894109f9b81f1e14450b [diff] [blame] |
~ Change-Id: I26b0ec37d13e3dcef84115462432df760e218424
diff --git a/nginx.conf b/nginx.conf index 5319793..b49df7b 100644 --- a/nginx.conf +++ b/nginx.conf
@@ -19,7 +19,7 @@ } # API代理 - 指向后端服务 - location /api/ { + location ^~/api/ { proxy_pass http://127.0.0.1:5004/; # 使用宿主机端口代理 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;