支持固定登录启动模式

This commit is contained in:
zhangshun
2026-05-25 10:38:18 +08:00
parent c2ac560527
commit 318105443a
6 changed files with 93 additions and 6 deletions

View File

@@ -3,6 +3,12 @@ PORT=3001
JWT_SECRET=change-me
DB_PATH=
# login: show login page
# fixed: auto login with FIXED_LOGIN_USERNAME and open model library directly
APP_AUTH_MODE=login
FIXED_LOGIN_USERNAME=viewer
FIXED_LOGIN_ROLE=user
# local: write to server/storage and serve via /storage
# cos: upload models to Tencent Cloud COS and read through CDN_BASE_URL
STORAGE_DRIVER=local