freeleaps-service-hub/apps/devops/app/common/config/site_settings.py
zhenyus e41aa3d983 fix: correct typo in BASE_RECONCILE_URL in site_settings.py
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-03 03:41:26 +08:00

36 lines
846 B
Python

import os
from pydantic_settings import BaseSettings
# NOTE: The values fall backs to your environment variables when not set here
class SiteSettings(BaseSettings):
NAME: str = "appname"
DEBUG: bool = True
ENV: str = "dev"
SERVER_HOST: str = "localhost"
SERVER_PORT: int = 8000
URL: str = "http://localhost"
TIME_ZONE: str = "UTC"
BASE_PATH: str = os.path.dirname(os.path.dirname((os.path.abspath(__file__))))
BASE_GITEA_URL: str = "https://gitea.freeleaps.mathmast.com"
# TODO: confirm with Zhenyu
BASE_RECONCILE_URL: str = "https://reconcile.freeleaps.mathmast.com"
# TODO: modify this with actual Loki URL
BASE_LOKI_URL: str = "http://localhost:3100"
class Config:
env_file = ".devbase-webapi.env"
env_file_encoding = "utf-8"
site_settings = SiteSettings()