2026-02-04 16:50:33 +02:00

30 lines
933 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
database_url: str = "postgresql+psycopg2://postgres:postgres@db:5432/lomda"
jwt_secret_key: str = "change_me_access"
jwt_refresh_secret_key: str = "change_me_refresh"
jwt_algorithm: str = "HS256"
access_token_expires_minutes: int = 30
refresh_token_expires_days: int = 7
cors_origins: str = "http://localhost:5173"
admin_seed_email: str = "admin@lomda.local"
admin_seed_password: str = "admin123"
frontend_url: str = "http://localhost:5173"
google_client_id: str = ""
google_client_secret: str = ""
google_redirect_uri: str = "http://localhost:8000/auth/google/callback"
smtp_host: str = ""
smtp_port: int = 587
smtp_user: str = ""
smtp_password: str = ""
smtp_from: str = ""
upload_dir: str = "/data/uploads"
class Config:
env_file = ".env"
settings = Settings()