diff --git a/api/ovdashboard_api/main.py b/api/ovdashboard_api/main.py index f715f5f..74881b8 100644 --- a/api/ovdashboard_api/main.py +++ b/api/ovdashboard_api/main.py @@ -40,8 +40,8 @@ def main() -> None: if webdav_check(): uvicorn_run( app="ovdashboard_api.main:app", - host="0.0.0.0", - port=8000, + host=SETTINGS.main_host, + port=SETTINGS.main_port, reload=not SETTINGS.production_mode, ) diff --git a/api/ovdashboard_api/settings.py b/api/ovdashboard_api/settings.py index 0afbf80..292ffcc 100644 --- a/api/ovdashboard_api/settings.py +++ b/api/ovdashboard_api/settings.py @@ -56,6 +56,8 @@ class Settings(BaseSettings): ping_host: str = "10.0.0.0" ping_port: int = 1 + main_host: str = "0.0.0.0" + main_port: int = 8000 api_prefix: str = "api/v1" openapi_url: str = "/openapi.json" docs_url: Optional[str] = None if production_mode else "/docs"