Files
Project_Animatix/backend/app/core/config.py
2026-04-17 19:11:57 +05:30

26 lines
743 B
Python

from typing import List
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
SECRET_KEY: str = "dev-secret-change-in-production"
DATABASE_URL: str = "sqlite:///./animatrix.db"
ASSET_STORAGE_ROOT: str = "./storage/assets"
OUTPUT_STORAGE_ROOT: str = "./storage/outputs"
COMFYUI_BASE_URL: str = "https://comfy.desineuron.in"
BACKEND_BASE_URL: str = "http://localhost:8000"
CORS_ORIGINS: str = "http://localhost:3000"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 10080
@property
def cors_origins_list(self) -> List[str]:
return [o.strip() for o in self.CORS_ORIGINS.split(",") if o.strip()]
class Config:
env_file = ".env"
extra = "ignore"
settings = Settings()