Skip to content

Commit 3b45ef6

Browse files
fix(server): server host is fixed to [::] (#10)
1 parent 2c072bc commit 3b45ef6

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

configs/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[server]
2-
host = 'localhost'
32
port = 50051
43
max_workers = 10
54

llm_backend/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class ServerConfig(BaseModel):
10-
host: str = "localhost"
1110
port: int
1211
max_workers: int = (os.cpu_count() or 1) * 5
1312

scripts/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def serve(config: Config, logger: logging.Logger):
4141
logger.info("RagService setup complete")
4242

4343
server_config = config.server
44-
address = f"{server_config.host}:{server_config.port}"
44+
address = f"[::]:{server_config.port}"
4545
server.add_insecure_port(address=address)
4646
logger.info("Server started on %s", address)
4747

0 commit comments

Comments
 (0)