Files
pipeline-lifetime/.env.example
T
2026-07-06 18:36:11 +08:00

26 lines
817 B
Bash

# Copy to .env for local deployment.
# Generate SECRET_KEY with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=change-me-to-a-long-random-secret
# Required for first deployment. Used to create or rotate the admin account on startup.
ADMIN_USERNAME=admin
ADMIN_PASSWORD=change-me
# Persist the app database in the mounted ./data directory.
DATABASE_URL=sqlite:////app/data/pipe_survival_0331.db
# Timezone used when displaying UTC timestamps.
APP_TIMEZONE=Asia/Shanghai
# Default: 16 MiB
MAX_UPLOAD_BYTES=16777216
# Default model path inside the Docker image.
MODEL_PATH=/app/my_survival_forest_model_quxi-10-0331.joblib
# Keep public registration closed by default.
ALLOW_REGISTRATION=false
# Minutes before an admin-generated password reset link expires.
PASSWORD_RESET_TOKEN_MINUTES=30