cosmo/backend/app/config.py

24 lines
441 B
Python

"""
Application configuration
"""
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
"""Application settings"""
app_name: str = "Cosmo - Deep Space Explorer"
api_prefix: str = "/api"
# CORS settings
cors_origins: list[str] = ["http://localhost:5173", "http://localhost:3000"]
# Cache settings
cache_ttl_days: int = 3
class Config:
env_file = ".env"
settings = Settings()