From 2a2b7b800dec687fafd5f163464893652b9d6549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 21 Dec 2023 15:26:47 +0100 Subject: [PATCH] updates ServiceConfig class --- src/pydase/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pydase/config.py b/src/pydase/config.py index 65af08c..b7cacbe 100644 --- a/src/pydase/config.py +++ b/src/pydase/config.py @@ -11,9 +11,11 @@ class OperationMode(BaseConfig): # type: ignore[misc] class ServiceConfig(BaseConfig): # type: ignore[misc] - service_config_dir: Path = Path("config") + config_dir: Path = Path("config") + web_port: int = 8001 + rpc_port: int = 18871 - CONFIG_SOURCES = EnvSource(allow=["SERVICE_CONFIG_DIR"]) + CONFIG_SOURCES = EnvSource(prefix="SERVICE_") class WebServerConfig(BaseConfig): # type: ignore[misc]