19 lines
486 B
Python
19 lines
486 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class AppSettings(BaseSettings):
|
|
JWT_SECRET_KEY: str = ""
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
|
REFRESH_TOKEN_EXPIRE_DAYS: int = 30
|
|
MONGODB_NAME: str = "freeleaps2"
|
|
MONGODB_URI: str = (
|
|
"mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority"
|
|
)
|
|
|
|
class Config:
|
|
env_file = ".myapp.env"
|
|
env_file_encoding = "utf-8"
|
|
|
|
|
|
app_settings = AppSettings()
|