Files
takeyourmeds/server/settings.py
T
Frank Schwenk 1cada42370 feat: replace Web Push with ntfy for medication reminders
Single notification path via ntfy HTTP publish for reliable Android delivery;
remove VAPID, push subscriptions, and SW push handlers. PWA settings show
topic subscribe link; humor texts and deep-link actions unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 10:42:58 +02:00

30 lines
820 B
Python

from __future__ import annotations
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
app_pin: str = "1234"
jwt_secret: str = "dev-secret-change-me"
jwt_expire_days: int = 90
ntfy_url: str = "https://ntfy.schwenk.online"
ntfy_topic: str = "takeyourmeds"
ntfy_token: str = ""
ntfy_click_url: str = "https://medis.schwenk.online"
openrouter_api_key: str = ""
openrouter_model: str = "google/gemini-2.0-flash-001"
db_path: str = "data/medis.sqlite"
meds_path: str = "meds.yaml"
messages_path: str = "messages.yaml"
public_dir: str = "public"
app_version: str = "1.0.0"
settings = Settings() # type: ignore[call-arg]