From cc3fca4b28a5511108bb420b2851642ed8544c35 Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Tue, 6 Feb 2024 13:45:21 -0500 Subject: [PATCH] Add host --- librarian_server/settings.py | 1 + librarian_server_scripts/librarian_server_start.py | 1 + 2 files changed, 2 insertions(+) diff --git a/librarian_server/settings.py b/librarian_server/settings.py index 83ac36c..60853dd 100644 --- a/librarian_server/settings.py +++ b/librarian_server/settings.py @@ -64,6 +64,7 @@ class ServerSettings(BaseSettings): displayed_site_name: str = "Untitled Librarian" displayed_site_description: str = "No description set." + host: str = "0.0.0.0" port: int add_stores: list[StoreSettings] diff --git a/librarian_server_scripts/librarian_server_start.py b/librarian_server_scripts/librarian_server_start.py index 3c04971..b69fd98 100755 --- a/librarian_server_scripts/librarian_server_start.py +++ b/librarian_server_scripts/librarian_server_start.py @@ -61,6 +61,7 @@ def main(setup=args.setup): uvicorn.run( "librarian_server:main", + host=server_settings.host, port=server_settings.port, log_level=server_settings.log_level.lower(), factory=True,