Centralize configuration into config.yaml

- All settings moved to config.yaml
- configs/load.py reads from config.yaml with env var overrides
- Environment variables still work for backward compatibility
- Added pyyaml to requirements
This commit is contained in:
2026-06-10 10:19:41 +08:00
parent 4485cbf702
commit c8fd057129
10 changed files with 123 additions and 40 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
from __future__ import annotations
from app.diagnostics.crash_handler import enable_crash_handler
from configs.default import LOG_DIR
from configs.load import LOG_DIR
def startup() -> None:
+1 -1
View File
@@ -4,7 +4,7 @@ from pathlib import Path
from loguru import logger
from configs.default import LOG_DIR, LOG_RETENTION, LOG_ROTATION
from configs.load import LOG_DIR, LOG_RETENTION, LOG_ROTATION
def setup_logging() -> None: