fooder-api/fooder/settings.py
Piotr Domański e2af49046c
All checks were successful
Python lint and test / linttest (push) Successful in 5m30s
[isort] ran with black profile
2024-08-04 16:17:16 +02:00

20 lines
374 B
Python

from typing import List
from pydantic_settings import BaseSettings
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] = ["*"]
API_KEY: str