freeleaps-service-hub/apps/authentication/common/config/app_settings.py
2024-10-30 08:44:37 -07:00

24 lines
549 B
Python

from pydantic_settings import BaseSettings
class AppSettings(BaseSettings):
NAME: str = "central_storage"
APP_NAME:str = NAME
JWT_SECRET_KEY: str = ""
ACCESS_TOKEN_EXPIRE_MINUTES:int = 3600
REFRESH_TOKEN_EXPIRE_DAYS:int = 1
MONGODB_URI:str= ""
MONGODB_NAME:str= ""
APPLICATION_ACTIVITY_LOG: str = APP_NAME + "-application-activity"
BUSINESS_METRIC_LOG: str = APP_NAME + "-business-metrics"
class Config:
env_file = ".myapp.env"
env_file_encoding = "utf-8"
app_settings = AppSettings()