forked from aegis/pyserveX
reverse proxy added
added tests for reverse proxy too
This commit is contained in:
+5
-1
@@ -76,9 +76,13 @@ class PyServeServer:
|
||||
|
||||
def _load_extensions(self) -> None:
|
||||
for ext_config in self.config.extensions:
|
||||
config = ext_config.config.copy()
|
||||
if ext_config.type == "routing":
|
||||
config.setdefault("default_proxy_timeout", self.config.server.proxy_timeout)
|
||||
|
||||
self.extension_manager.load_extension(
|
||||
ext_config.type,
|
||||
ext_config.config
|
||||
config
|
||||
)
|
||||
|
||||
def _create_app(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user