Initial commit
This commit is contained in:
18
app/settings.py
Normal file
18
app/settings.py
Normal file
@ -0,0 +1,18 @@
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
JWT_SECRET: str
|
||||
JWT_ALGORITHM: str
|
||||
JWT_EXPIRE_MINUTES: int
|
||||
|
||||
MONGODB_URL: str
|
||||
MONGODB_DATABASE: str
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user