freeleaps-service-hub/apps/payment/common/config/app_settings.py
zhenyus b8f7307a86 refactor(log): refactoring logging for each service for loki
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-04-21 10:55:26 +08:00

32 lines
713 B
Python

from pydantic_settings import BaseSettings
class AppSettings(BaseSettings):
NAME: str = "payment"
APP_NAME: str = NAME
APP_ENV: str = "alpha"
JWT_SECRET_KEY: str = ""
ACCESS_TOKEN_EXPIRE_MINUTES: int = 3600
REFRESH_TOKEN_EXPIRE_DAYS: int = 1
METRICS_ENABLED: bool = False
PROBES_ENABLED: bool = True
MONGODB_URI: str = ""
MONGODB_NAME: str = ""
LOG_BASE_PATH: str = "./log"
BACKEND_LOG_FILE_NAME: str = APP_NAME
APPLICATION_ACTIVITY_LOG: str = APP_NAME + "-application-activity"
STRIPE_API_KEY: str = ""
SITE_URL_ROOT: str = ""
class Config:
env_file = ".myapp.env"
env_file_encoding = "utf-8"
app_settings = AppSettings()