docs(router-proxy): 更新环境变量配置说明
- 在 .env.example 中添加了关于 REGISTRY_PATH 和 OUTPUT_PATH 的注释说明, 解释这两个变量通常不需要手动配置,脚本会自动基于相对路径推导 - 在 README.md 中补充了相关配置项的中文说明,强调默认值比绝对路径更稳定
This commit is contained in:
@ -5,5 +5,9 @@ PROXY_CONTAINER_NAME=nano-router-proxy
|
|||||||
PROXY_NETWORK_NAME=nano-instance-edge
|
PROXY_NETWORK_NAME=nano-instance-edge
|
||||||
PROXY_HTTP_PORT=8088
|
PROXY_HTTP_PORT=8088
|
||||||
|
|
||||||
REGISTRY_PATH=/home/ivan/xuan/nano_project/app-instance/runtime/registry/instances.json
|
# Optional host-side overrides.
|
||||||
OUTPUT_PATH=/home/ivan/xuan/nano_project/router-proxy/runtime/conf.d/instances.conf
|
# In most cases leave these unset and use start-proxy.sh defaults,
|
||||||
|
# which resolve paths relative to the script location.
|
||||||
|
#
|
||||||
|
# REGISTRY_PATH=../app-instance/runtime/registry/instances.json
|
||||||
|
# OUTPUT_PATH=./runtime/conf.d/instances.conf
|
||||||
|
|||||||
@ -27,6 +27,9 @@
|
|||||||
|
|
||||||
- [`.env.example`](/home/ivan/xuan/nano_project/router-proxy/.env.example)
|
- [`.env.example`](/home/ivan/xuan/nano_project/router-proxy/.env.example)
|
||||||
|
|
||||||
|
`REGISTRY_PATH` 和 `OUTPUT_PATH` 一般不需要配。
|
||||||
|
这两个是主机侧脚本路径,默认值会按 `start-proxy.sh` 自己所在目录推导,比写死某台机器上的绝对路径更稳。
|
||||||
|
|
||||||
## 启动
|
## 启动
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user