27 lines
646 B
Plaintext
27 lines
646 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=login
|
|
FIXED_LOGIN_USERNAME=
|
|
FIXED_LOGIN_ROLE=user
|
|
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
|