2 Commits
Author SHA1 Message Date
jiang af1dc11681 docs: record deployed API port 2026-10-23 16:12:26 +08:00
jiang 8673429ec4 docs: clarify peripheral proxy upstream 2026-10-23 16:11:34 +08:00
+2 -2
View File
@@ -13,10 +13,10 @@ Custom Location:
| Location | `/peripheral`,不添加末尾斜杠 |
| Scheme | `http` |
| Forward Hostname / IP | `192.168.1.114`,不追加路径或末尾斜杠 |
| Forward Port | `8000` |
| Forward Port | `8001` |
| Forward Path | 留空 |
该配置保留 `/peripheral` 前缀,因此浏览器请求
容器内部仍监听 `8000`,生产发布在宿主机映射为 `8001`,避免与已有服务冲突。该配置保留 `/peripheral` 前缀,因此浏览器请求
`/peripheral/api/sample/v1/context` 时,主 Server 收到相同路径并交给挂载的子应用。不要在
Forward Hostname 后追加 `/api/sample/v1`。本机开发和预览模式也将 `/peripheral` 代理到
`TJWATER_SERVER_API_BASE_URL`,默认是 `http://127.0.0.1:8000`。