diff options
author | unknown <mcgpapu@gmail.com> | 2024-01-09 09:01:20 +0000 |
---|---|---|
committer | unknown <mcgpapu@gmail.com> | 2024-01-09 09:01:20 +0000 |
commit | 8d986727b39ee6616190559efa1c41c1942b99b0 (patch) | |
tree | c0ac2ed551238afa5e2e620a59734d87a5a8baec /modules/api | |
parent | 6869d95890849c9b209bb66774539bfdf870df2c (diff) | |
download | stable-diffusion-webui-gfx803-8d986727b39ee6616190559efa1c41c1942b99b0.tar.gz stable-diffusion-webui-gfx803-8d986727b39ee6616190559efa1c41c1942b99b0.tar.bz2 stable-diffusion-webui-gfx803-8d986727b39ee6616190559efa1c41c1942b99b0.zip |
include tls arguments in api uvicorn init
Diffstat (limited to 'modules/api')
-rw-r--r-- | modules/api/api.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 9d1292e9..59e46335 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -879,7 +879,15 @@ class Api: def launch(self, server_name, port, root_path): self.app.include_router(self.router) - uvicorn.run(self.app, host=server_name, port=port, timeout_keep_alive=shared.cmd_opts.timeout_keep_alive, root_path=root_path) + uvicorn.run( + self.app, + host=server_name, + port=port, + timeout_keep_alive=shared.cmd_opts.timeout_keep_alive, + root_path=root_path, + ssl_keyfile=shared.cmd_opts.tls_keyfile, + ssl_certfile=shared.cmd_opts.tls_certfile + ) def kill_webui(self): restart.stop_program() |