Files
dmt-modelLibrary/.env.example
2026-06-02 10:04:02 +08:00

27 lines
652 B
Plaintext

HOST=0.0.0.0
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=fixed
FIXED_LOGIN_USERNAME=admin
FIXED_LOGIN_ROLE=admin
ALLOW_USER_EDIT_SYSTEM_LIBRARY=false
# 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
# Optional when STORAGE_DRIVER=local and public absolute URLs are needed.
PUBLIC_BASE_URL=
# Required when STORAGE_DRIVER=cos
COS_SECRET_ID=
COS_SECRET_KEY=
COS_BUCKET=
COS_REGION=
COS_PREFIX=models
CDN_BASE_URL=https://cdn.example.com