Skip to content

Commit

Permalink
Add host
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Feb 6, 2024
1 parent 49ad07e commit cc3fca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions librarian_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions librarian_server_scripts/librarian_server_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cc3fca4

Please sign in to comment.