mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-07 03:35:24 +00:00
feat: make server host configurable
This commit is contained in:
parent
75bb7aeef9
commit
0970e73da5
@ -42,6 +42,7 @@ class Settings(BaseSettings):
|
||||
typesense_collection_name: str = "entities"
|
||||
|
||||
# Server settings
|
||||
server_host: str = "0.0.0.0" # Add this line
|
||||
server_port: int = 8080
|
||||
|
||||
# VLM plugin settings
|
||||
|
@ -709,7 +709,7 @@ def run_server():
|
||||
|
||||
uvicorn.run(
|
||||
"memos.server:app",
|
||||
host="0.0.0.0",
|
||||
host=settings.server_host, # Use the new server_host setting
|
||||
port=settings.server_port,
|
||||
reload=False,
|
||||
log_config=LOGGING_CONFIG,
|
||||
|
Loading…
x
Reference in New Issue
Block a user