28 lines
623 B
Python
28 lines
623 B
Python
import os
|
|
from pydantic_settings import BaseSettings
|
|
|
|
class AppSettings(BaseSettings):
|
|
NAME: str = "content"
|
|
APP_NAME:str = NAME
|
|
|
|
METRICS_ENABLED: bool = False
|
|
PROBES_ENABLED: bool = True
|
|
|
|
FREELEAPS_WWW_AS_AZURE_CLIENT_SECRET: str = ""
|
|
|
|
CENTRAL_STORAGE_WEBAPI_URL_BASE:str =""
|
|
|
|
MONGODB_NAME:str =""
|
|
MONGODB_URI: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 = ".content.env"
|
|
env_file_encoding = "utf-8"
|
|
|
|
|
|
app_settings = AppSettings()
|