Princeaka's picture
Upload 14 files
220d87f verified
raw
history blame
453 Bytes
import os
from pydantic import BaseModel
from dotenv import load_dotenv
load_dotenv()
class Settings(BaseModel):
APP_NAME: str = os.getenv("APP_NAME", "CHB App")
DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///./app.db")
JWT_SECRET: str = os.getenv("JWT_SECRET", "dev-secret")
JWT_EXPIRES_MINUTES: int = int(os.getenv("JWT_EXPIRES_MINUTES", "60"))
CORS_ORIGINS: str = os.getenv("CORS_ORIGINS", "*")
settings = Settings()