cosmo/backend/app/config.py

24 lines
452 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 - allow all origins for development (IP access support)
cors_origins: list[str] = ["*"]
# Cache settings
cache_ttl_days: int = 3
class Config:
env_file = ".env"
settings = Settings()