first commit

This commit is contained in:
mega 2026-03-19 11:32:17 +00:00
commit 4b98219bf7
144 changed files with 31561 additions and 0 deletions

27
backend/core/config.py Normal file
View file

@ -0,0 +1,27 @@
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
# App
APP_NAME: str = "DemoBMS API"
DEBUG: bool = False
# Database
DATABASE_URL: str = "postgresql+asyncpg://dcim:dcim_pass@db:5432/dcim"
# MQTT broker
MQTT_HOST: str = "localhost"
MQTT_PORT: int = 1883
# CORS
CORS_ORIGINS: list[str] = []
# Clerk
CLERK_PUBLISHABLE_KEY: str = ""
CLERK_SECRET_KEY: str = ""
CLERK_JWKS_URL: str = ""
settings = Settings()