feat(feedback): 留言反馈全链路 — 公开弹窗(验证码+IP限频) + 后台管理(状态流转/删除/角标) + nginx /admin/ 反代修复502

This commit is contained in:
3970260761 committed 2026-11-12 01:55:01 +08:00
1 parent 9d75776d52
commit 55b1111d96
6 files changed
+534 -2

No files matched your search

+15
View File
@@ -17,6 +17,21 @@ server {
proxy_read_timeout 10s;
}
# admin console SPA route (exact match beats the /admin/ API prefix below,
# otherwise nginx 301s /admin -> /admin/ and the API proxy swallows the UI)
location = /admin {
try_files $uri /index.html;
}
# admin console API (relay does its own Bearer auth; must beat SPA fallback)
location /admin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://it-tools-relay:8091;
proxy_connect_timeout 5s;
proxy_read_timeout 30s;
}
# license relay (card activation etc; auth gate itself must stay open)
location /relay/ {
client_max_body_size 2g;