freeleaps-service-hub/apps/authentication/common/config/app_settings.py

31 lines
808 B
Python

from pydantic_settings import BaseSettings
class AppSettings(BaseSettings):
NAME: str = "authentication"
APP_NAME: str = NAME
JWT_SECRET_KEY: str = ""
JWT_ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 3600
REFRESH_TOKEN_EXPIRE_DAYS: int = 1
DEVSVC_WEBAPI_URL_BASE: str = "http://localhost:8007/api/devsvc/"
NOTIFICATION_WEBAPI_URL_BASE: str = "http://localhost:8003/api/notification/"
MONGODB_URI: str = ""
MONGODB_NAME: str = ""
SYSTEM_USER_ID: str = "117f191e810c19729de860aa"
LOG_BASE_PATH: str = "./log"
BACKEND_LOG_FILE_NAME: str = APP_NAME
APPLICATION_ACTIVITY_LOG: str = APP_NAME + "-application-activity"
class Config:
env_file = ".myapp.env"
env_file_encoding = "utf-8"
app_settings = AppSettings()