fooder-api/fooder/settings.py
2023-04-01 20:13:11 +02:00

15 lines
278 B
Python

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