mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-16 00:49:26 +01:00
updates ServiceConfig class
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user