setup admin connection

This commit is contained in:
2026-05-06 12:22:17 +02:00
parent bdb523d4b8
commit 824173e63e
20 changed files with 425 additions and 136 deletions

View File

@@ -9,7 +9,10 @@ class Settings(BaseSettings):
VERSION: str = "0.1.0"
ALLOWED_ORIGINS: List[str] = ["*"]
ADMIN_ENABLED: bool = False
# Single hardcoded admin account, configured via env.
# If either field is empty, admin login is effectively disabled.
ADMIN_USERNAME: str = ""
ADMIN_PASSWORD: str = ""
DATABASE_URL: str = "sqlite:///./data/sop.db"