Initial Animatrix import
This commit is contained in:
25
backend/app/core/config.py
Normal file
25
backend/app/core/config.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user