From a54d6c5454b5d4f687737e1eb2f08a853cdb9466 Mon Sep 17 00:00:00 2001 From: steven_li Date: Mon, 16 Mar 2026 11:28:01 +0800 Subject: [PATCH] =?UTF-8?q?docs(router-proxy):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 .env.example 中添加了关于 REGISTRY_PATH 和 OUTPUT_PATH 的注释说明, 解释这两个变量通常不需要手动配置,脚本会自动基于相对路径推导 - 在 README.md 中补充了相关配置项的中文说明,强调默认值比绝对路径更稳定 --- router-proxy/.env.example | 8 ++++++-- router-proxy/README.md | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) 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