todo_app / src /config.py
MuzammilMax's picture
Upload folder using huggingface_hub
ed5cf78 verified
Raw
History Blame Contribute Delete
458 Bytes
from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
DATABASE_URL: str = "postgresql+asyncpg://user:password@localhost/mytodo_db"
SECRET_KEY: str = "your-secret-key-must-be-changed-in-production"
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
GEMINI_API_KEY: Optional[str] = None
class Config:
env_file = ".env"
extra = "ignore"
settings = Settings()