diff options
| author | Christian Cleberg <[email protected]> | 2026-04-08 14:29:21 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-08 14:29:21 -0500 |
| commit | a7c25076d16bde9ec928b9ef01bce952406ea7b1 (patch) | |
| tree | 802c5f84902f240c6aab95acc1e6348dfbd806c2 /app/config.py | |
| download | hutch-notify-a7c25076d16bde9ec928b9ef01bce952406ea7b1.tar.gz hutch-notify-a7c25076d16bde9ec928b9ef01bce952406ea7b1.tar.bz2 hutch-notify-a7c25076d16bde9ec928b9ef01bce952406ea7b1.zip | |
initial commit
Diffstat (limited to 'app/config.py')
| -rw-r--r-- | app/config.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/config.py b/app/config.py new file mode 100644 index 0000000..9784755 --- /dev/null +++ b/app/config.py @@ -0,0 +1,23 @@ +from pydantic_settings import BaseSettings, SettingsConfigDict + + +class Settings(BaseSettings): + model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore") + + app_env: str = "development" + app_host: str = "0.0.0.0" + app_port: int = 8000 + database_url: str = "sqlite+aiosqlite:///./hutch_notify.db" + api_key: str = "change-me" + + apns_key_id: str + apns_team_id: str + apns_bundle_id: str + apns_private_key_path: str + + srht_token: str + poll_interval_seconds: int = 120 + log_level: str = "INFO" + + +settings = Settings() |
