move webui to 5001 to avoid overlap with kea
This commit is contained in:
parent
a5984f0965
commit
ec467234ec
@ -9,7 +9,8 @@ import capport.config
|
||||
|
||||
def run(config: hypercorn.config.Config) -> None:
|
||||
sockets = config.create_sockets()
|
||||
assert config.worker_class == 'trio'
|
||||
if type(config.worker_class) != 'trio':
|
||||
raise Exception('Invalid worker class received from constructor')
|
||||
|
||||
hypercorn.trio.run.trio_worker(config=config, sockets=sockets)
|
||||
|
||||
@ -25,6 +26,7 @@ def main() -> None:
|
||||
hypercorn_config = hypercorn.config.Config()
|
||||
hypercorn_config.application_path = 'capport.api.app'
|
||||
hypercorn_config.worker_class = 'trio'
|
||||
hypercorn_config.bind = ["127.0.0.1:5001"]
|
||||
|
||||
if _config.server_names:
|
||||
hypercorn_config.server_names = _config.server_names
|
||||
|
Loading…
Reference in New Issue
Block a user