first commit
This commit is contained in:
commit
4b98219bf7
144 changed files with 31561 additions and 0 deletions
27
backend/core/config.py
Normal file
27
backend/core/config.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue