Add core configuration

This commit is contained in:
2026-01-26 21:55:09 +11:00
parent d4a691bb1e
commit dc20f50fa2

View File

@@ -0,0 +1,27 @@
"""Application configuration."""
from pydantic_settings import BaseSettings
from typing import List
class Settings(BaseSettings):
"""Application settings."""
APP_NAME: str = "Family Hub"
APP_VERSION: str = "0.1.0"
DEBUG: bool = True
# Database
DATABASE_URL: str = "sqlite:///./family_hub.db"
# Security
SECRET_KEY: str = "your-secret-key-change-this-in-production"
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
# CORS
ALLOWED_ORIGINS: List[str] = ["http://localhost:5173", "http://localhost:3000"]
class Config:
env_file = ".env"
case_sensitive = True
settings = Settings()