added espd

This commit is contained in:
2026-09-08 10:10:30 +03:00
parent 8397f09de4
commit 618081bc84
33 changed files with 3880 additions and 66 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
database_url: str = "postgresql+psycopg://gost:gost@localhost:5432/gost"
api_token: str = "changeme"
api_token: str = "changeme" # legacy bearer; also JWT secret / admin password fallback
admin_username: str = "admin"
admin_password: str = "" # empty → use api_token
jwt_secret: str = "" # empty → use api_token
jwt_expire_hours: int = 72
data_dir: str = "./data"
font_path: str = str(Path(__file__).resolve().parents[2] / "fonts" / "GOST_A.TTF")