fix(iot-gateway): 修正RPC环境变量名不匹配导致连接失败
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled

docker-compose中VIEWSH_IOT_GATEWAY_RPC_URL与yaml期望的VIEWSH_GATEWAY_RPC_URL不一致,
导致iot-gateway回退到默认值127.0.0.1:48091,容器间无法通信。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-02-13 11:39:37 +08:00
parent 26e909cce9
commit e15ebfd3d4
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ viewsh:
gateway:
# 设备 RPC 配置
rpc:
url: ${VIEWSH_GATEWAY_RPC_URL:http://127.0.0.1:48091}
url: ${VIEWSH_GATEWAY_RPC_URL:http://aiot-iot-server:48091}
connect-timeout: ${VIEWSH_RPC_CONNECT_TIMEOUT:30s}
read-timeout: ${VIEWSH_RPC_READ_TIMEOUT:30s}
# 设备 Token 配置