refactor: split flask app structure

This commit is contained in:
2026-07-06 14:41:16 +08:00
parent c2198aad51
commit a75e857c71
18 changed files with 1871 additions and 1390 deletions
+7 -1
View File
@@ -2,9 +2,15 @@
# Generate SECRET_KEY with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=
# Set ADMIN_PASSWORD to create or rotate the admin account on startup.
# Required for first deployment. Used to create or rotate the admin account on startup.
ADMIN_USERNAME=admin
ADMIN_PASSWORD=
# 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