krz/hutch-notify

Notification server for Hutch.

clone: git clone https://gitbay.org/krz/hutch-notify.git

main: app/config.py · raw

 1from pydantic_settings import BaseSettings, SettingsConfigDict
 2
 3
 4class Settings(BaseSettings):
 5    model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
 6
 7    app_env: str = "development"
 8    app_host: str = "0.0.0.0"
 9    app_port: int = 8000
10    database_url: str = "sqlite+aiosqlite:///./hutch_notify.db"
11    api_key: str = "change-me"
12
13    apns_key_id: str
14    apns_team_id: str
15    apns_bundle_id: str
16    apns_private_key_path: str
17
18    srht_token: str
19    poll_interval_seconds: int = 120
20    log_level: str = "INFO"
21
22
23settings = Settings()