fix(security): disable Swagger in prod, remove dead debug field, harden env config

This commit is contained in:
qzl
2026-04-30 11:47:48 +08:00
parent 388775e05f
commit 6432c24e20
3 changed files with 9 additions and 4 deletions
-1
View File
@@ -35,7 +35,6 @@ def _resolve_project_root() -> Path:
class RuntimeSettings(BaseModel):
environment: Literal["dev", "test", "prod"] = "dev"
service_name: str = "app"
debug: bool = True
log_level: str = "INFO"
log_json: bool = True
log_rotation: Literal["time", "size", "none"] = "time"