docs: clarify peripheral proxy upstream
This commit is contained in:
@@ -11,12 +11,13 @@ Custom Location:
|
|||||||
| 配置项 | 值 |
|
| 配置项 | 值 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| Location | `/peripheral`,不添加末尾斜杠 |
|
| Location | `/peripheral`,不添加末尾斜杠 |
|
||||||
| Scheme | `http` |
|
| Scheme | 与 `next-api.waternetwork.cn` 现有 Proxy Host 的上游一致 |
|
||||||
| Forward Hostname / IP | `192.168.1.114`,不追加路径或末尾斜杠 |
|
| Forward Hostname / IP | 复制 `next-api.waternetwork.cn` 现有 Proxy Host 的 Forward Hostname / IP,不追加路径或末尾斜杠 |
|
||||||
| Forward Port | `8000` |
|
| Forward Port | 复制 `next-api.waternetwork.cn` 现有 Proxy Host 的 Forward Port |
|
||||||
| Forward Path | 留空 |
|
| Forward Path | 留空 |
|
||||||
|
|
||||||
该配置保留 `/peripheral` 前缀,因此浏览器请求
|
不要根据容器内的 `8000` 端口猜测宿主机映射;生产发布端口以
|
||||||
|
`next-api.waternetwork.cn` 的现有 NPMplus 上游配置为准。该配置保留 `/peripheral` 前缀,因此浏览器请求
|
||||||
`/peripheral/api/sample/v1/context` 时,主 Server 收到相同路径并交给挂载的子应用。不要在
|
`/peripheral/api/sample/v1/context` 时,主 Server 收到相同路径并交给挂载的子应用。不要在
|
||||||
Forward Hostname 后追加 `/api/sample/v1`。本机开发和预览模式也将 `/peripheral` 代理到
|
Forward Hostname 后追加 `/api/sample/v1`。本机开发和预览模式也将 `/peripheral` 代理到
|
||||||
`TJWATER_SERVER_API_BASE_URL`,默认是 `http://127.0.0.1:8000`。
|
`TJWATER_SERVER_API_BASE_URL`,默认是 `http://127.0.0.1:8000`。
|
||||||
|
|||||||
Reference in New Issue
Block a user