feat(web): integrate auth guards, dual settings and dev switcher

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WeiCHEN
2026-09-13 02:50:20 +00:00
committed by weichen
co-authored by Cursor
parent cd08e443eb
commit b4e4a64cd0
6 changed files with 273 additions and 55 deletions
+9
View File
@@ -67,3 +67,12 @@ RERANKER_ENDPOINT_URL=https://www.dmxapi.cn/v1/rerank
RERANKER_PROVIDER=openai_compatible
RERANKER_MODEL=bge-reranker-v2-m3-free
RERANKER_API_KEY=
# --- 9. 系统管理员与认证准入配置 ---
# 超级管理员凭据 (系统启动时自动初始化为 role-admin)
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin-secret-password-123
# 全局准入策略 (是否开放自主注册与注册是否必须审批)
AUTH_REGISTRATION_ENABLED=true
AUTH_REQUIRE_APPROVAL=false