fooder-api/fooder/settings.py

16 lines
278 B
Python
Raw Normal View History

2023-04-01 16:19:12 +02:00
from pydantic import BaseSettings
2023-04-01 20:13:11 +02:00
from typing import List
2023-04-01 16:19:12 +02:00
class Settings(BaseSettings):
"""Settings."""
DB_URI: str
ECHO_SQL: bool
SECRET_KEY: str
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
2023-04-01 20:13:11 +02:00
ALLOWED_ORIGINS: List[str] = ["*"]