added espd
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user