19 lines
373 B
Python
19 lines
373 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] = ["*"]
|
|
|
|
API_KEY: str
|