This commit is contained in:
2026-03-30 15:34:54 +00:00
parent 9f7db47528
commit 3dcfd39e84
6 changed files with 198 additions and 1 deletions
+12
View File
@@ -1,8 +1,20 @@
from __future__ import annotations
from typing import Literal
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
PROJECT_NAME: str = "home-automation-backend"
SMTP_HOST: str | None = None
SMTP_PORT: int = 587
SMTP_USERNAME: str | None = None
SMTP_PASSWORD: str | None = None
SMTP_FROM_EMAIL: str | None = None
SMTP_FROM_NAME: str | None = None
SMTP_ENCRYPTION: Literal["starttls", "ssl_tls"] = "starttls"
SMTP_TIMEOUT: float = 10.0
settings = Settings()