fix: TAC 代理路径重写 /tac/api/ → /api/(平台无 /tac 前缀)
This commit is contained in:
1 parent
7c3d2cfdef
commit
c2366b5182
1 file changed
+2
-2
@@ -90,9 +90,9 @@ server {
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
# ── TAC 人机验证:同源反代 → tianai-captcha 平台(generate/verify 用 X-Site-Key 头) ──
|
||||
# ── TAC 人机验证:同源反代 → tianai-captcha 平台(/tac/api/xx → /api/xx,generate/verify 用 X-Site-Key 头) ──
|
||||
location /tac/api/ {
|
||||
proxy_pass http://captcha-platform;
|
||||
proxy_pass http://captcha-platform/api/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
Reference in new issue
Block a user