14 lines
277 B
Python
14 lines
277 B
Python
|
|
from pydantic_settings import BaseSettings
|
||
|
|
|
||
|
|
class Settings(BaseSettings):
|
||
|
|
DATABASE_URL: str
|
||
|
|
REDIS_URL: str
|
||
|
|
SECRET_KEY: str
|
||
|
|
ALGORITHM: str = "HS256"
|
||
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 10080
|
||
|
|
|
||
|
|
class Config:
|
||
|
|
env_file = ".env"
|
||
|
|
|
||
|
|
settings = Settings()
|