docs: add deployment note for Linux servers (#565)

* docs: add deployment note for Linux servers

- allow external connections by changing the host to 0.0.0.0.
- security warning to remind users to secure their environment before exposing the service.

* docs: add deployment note for Linux servers

- allow external connections by changing the host to 0.0.0.0.
- security warning to remind users to secure their environment before exposing the service.
This commit is contained in:
voroq
2025-09-09 23:05:04 +08:00
committed by GitHub
parent 317acdffad
commit 005712679c
2 changed files with 6 additions and 0 deletions

View File

@@ -134,6 +134,9 @@ uv run main.py
# 在Windows上
bootstrap.bat -d
```
> [! 注意]
> 出于安全考虑,后端服务器默认绑定到 127.0.0.1 (localhost)。如果您需要允许外部连接例如在Linux服务器上部署时您可以修改启动脚本中的主机地址为 0.0.0.0。uv run server.py --host 0.0.0.0
> 请注意,在将服务暴露给外部网络之前,请务必确保您的环境已经过适当的安全加固。
打开浏览器并访问[`http://localhost:3000`](http://localhost:3000)探索 Web UI。