first
This commit is contained in:
13
backend/app/config.py
Normal file
13
backend/app/config.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
ha_base_url: str = "http://10.0.0.2:8123"
|
||||
ha_token: str = ""
|
||||
database_url: str = "sqlite:///./data/ha_explorer.db"
|
||||
cors_origins: list[str] = ["http://localhost:5173"]
|
||||
|
||||
model_config = {"env_prefix": ""}
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user