freeleaps-service-hub/apps/central_storage/webapi/config/site_settings.py
2024-10-30 07:22:26 -07:00

28 lines
598 B
Python

import os
from pydantic_settings import BaseSettings
class SiteSettings(BaseSettings):
NAME: str = "appname"
DEBUG: bool = True
ENV: str = "dev"
SERVER_HOST: str = "0.0.0.0"
SERVER_PORT: int = 8005
URL: str = "http://localhost"
TIME_ZONE: str = "UTC"
BASE_PATH: str = os.path.dirname(os.path.dirname((os.path.abspath(__file__))))
MONGODB_NAME: str = os.environ["MONGODB_NAME"]
MONGODB_URI: str = os.environ["MONGODB_URI"]
class Config:
env_file = ".devbase-webapi.env"
env_file_encoding = "utf-8"
site_settings = SiteSettings()