fooder-api/fooder/settings.py
2023-07-30 20:18:42 +02:00

17 lines
355 B
Python

from pydantic_settings import BaseSettings
from typing import List
class Settings(BaseSettings):
"""Settings."""
DB_URI: str
ECHO_SQL: bool
SECRET_KEY: str
REFRESH_SECRET_KEY: str
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
REFRESH_TOKEN_EXPIRE_DAYS: int = 30
ALLOWED_ORIGINS: List[str] = ["*"]