diff --git a/router-proxy/.env.example b/router-proxy/.env.example index 1b0a7fb..7cc84d6 100644 --- a/router-proxy/.env.example +++ b/router-proxy/.env.example @@ -5,5 +5,9 @@ PROXY_CONTAINER_NAME=nano-router-proxy PROXY_NETWORK_NAME=nano-instance-edge PROXY_HTTP_PORT=8088 -REGISTRY_PATH=/home/ivan/xuan/nano_project/app-instance/runtime/registry/instances.json -OUTPUT_PATH=/home/ivan/xuan/nano_project/router-proxy/runtime/conf.d/instances.conf +# Optional host-side overrides. +# 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 diff --git a/router-proxy/README.md b/router-proxy/README.md index 391cf02..1956d6d 100644 --- a/router-proxy/README.md +++ b/router-proxy/README.md @@ -27,6 +27,9 @@ - [`.env.example`](/home/ivan/xuan/nano_project/router-proxy/.env.example) +`REGISTRY_PATH` 和 `OUTPUT_PATH` 一般不需要配。 +这两个是主机侧脚本路径,默认值会按 `start-proxy.sh` 自己所在目录推导,比写死某台机器上的绝对路径更稳。 + ## 启动 ```bash