freeleaps-service-hub/apps/central_storage/common/config/app_settings.py
2025-03-17 10:46:02 +08:00

26 lines
588 B
Python

import os
from pydantic_settings import BaseSettings
class AppSettings(BaseSettings):
NAME: str = "central_storage"
APP_NAME:str = NAME
METRICS_ENABLED: bool = False
PROBES_ENABLED: bool = True
AZURE_STORAGE_DOCUMENT_API_ENDPOINT: str = ""
AZURE_STORAGE_DOCUMENT_API_KEY: str = ""
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()