Files
x-server-mobile/nginx/x-server-api.conf
T
root 029a3820bb fix: 修正 nginx trailing slash 导致路由代理失败的问题
- location 使用 /login/qrcode (不带尾部斜杠)
- proxy_pass 使用 http://127.0.0.1:8787 (不带路径)
- 这样可以完整传递 URI 到后端

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:08:11 +08:00

10 lines
346 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 飞书登录回调代理
# 注意:location 不带 trailing slash,proxy_pass 不带路径
location /login/qrcode {
proxy_pass http://127.0.0.1:8787;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}