fix: nginx bugcollect 路由用 rewrite 剥离 /api 前缀,兼容 controller /bugcollect/v1 路径
这个提交包含在:
父节点
cf09a1a311
当前提交
aad7719c28
@ -58,8 +58,10 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Bug 收集 — 必须在通用 /api/ 之前
|
# Bug 收集 — 必须在通用 /api/ 之前
|
||||||
|
# rewrite 剥离 /api 前缀:/api/bugcollect/xxx → /bugcollect/xxx
|
||||||
location /api/bugcollect/ {
|
location /api/bugcollect/ {
|
||||||
set $svc bugcollect-service;
|
set $svc bugcollect-service;
|
||||||
|
rewrite ^/api(/bugcollect/.*)$ $1 break;
|
||||||
proxy_pass http://$svc:9006;
|
proxy_pass http://$svc:9006;
|
||||||
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;
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户