diff --git a/resotolib/resotolib/web/__init__.py b/resotolib/resotolib/web/__init__.py index 98205ade11..c6110a1eff 100644 --- a/resotolib/resotolib/web/__init__.py +++ b/resotolib/resotolib/web/__init__.py @@ -12,6 +12,7 @@ def __init__( web_port: int = 9955, ssl_cert: Optional[str] = None, ssl_key: Optional[str] = None, + extra_config: Optional[dict] = None, ) -> None: super().__init__() self.name = "webserver" @@ -20,6 +21,7 @@ def __init__( self.web_port = web_port self.ssl_cert = ssl_cert self.ssl_key = ssl_key + self.extra_config = extra_config or {} @property def serving(self) -> bool: @@ -69,6 +71,7 @@ def run(self) -> None: "request.show_tracebacks": False, "request.show_mismatched_params": False, **ssl_args, + **self.extra_config, } } )