fooder-api/fooder/settings.py

18 lines
346 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
2023-04-02 14:38:22 +02:00
REFRESH_SECRET_KEY: str
2023-04-01 16:19:12 +02:00
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
2023-04-02 14:38:22 +02:00
REFRESH_TOKEN_EXPIRE_DAYS: int = 30
2023-04-01 20:13:11 +02:00
ALLOWED_ORIGINS: List[str] = ["*"]