3f1da92cf4
YouTube subtitles via OpenRouter become persistent, shareable recaps with timestamp jump links, PIN-protected creation, and Traefik deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
616 B
Python
23 lines
616 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
|
|
|
|
openrouter_api_key: str = ""
|
|
openrouter_model: str = "google/gemini-2.5-flash"
|
|
|
|
db_path: str = "data/ytrecap.sqlite"
|
|
public_dir: str = "public"
|
|
app_url: str = "http://localhost:8000"
|
|
app_version: str = "1.0.0"
|
|
|
|
|
|
settings = Settings() # type: ignore[call-arg]
|