Files
pipeline-lifetime/.env.example
T
jiang c7ee2adb82 feat(auth): add password reset flow
Add admin-generated reset links, reset UI, timezone-aware expiry display, and registration captcha coverage.
2026-07-06 17:55:10 +08:00

26 lines
775 B
Bash

# Copy to .env for local deployment.
# Generate SECRET_KEY with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=
# Required for first deployment. Used to create or rotate the admin account on startup.
ADMIN_USERNAME=admin
ADMIN_PASSWORD=
# 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