17 lines
374 B
Python

from pydantic_settings import BaseSettings
from pathlib import Path
class Settings(BaseSettings):
database_url: str
jwt_secret_key: str
jwt_algorithm: str = "HS256"
access_token_expire_minutes: int = 30
frontend_url: str = "http://localhost:5173"
class Config:
env_file = str(Path(__file__).parent.parent / ".env")
settings = Settings()