fix(iot-gateway): 修正RPC环境变量名为VIEWSH_IOT_GATEWAY_RPC_URL
Spring Boot relaxed binding将viewsh.iot.gateway.rpc.url映射为 VIEWSH_IOT_GATEWAY_RPC_URL,而非VIEWSH_GATEWAY_RPC_URL。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -212,7 +212,7 @@ services:
|
|||||||
|
|
||||||
ROCKETMQ_NAME_SERVER: rmq-4wd73bxpv.rocketmq.sh.qcloud.tencenttdmq.com:8080
|
ROCKETMQ_NAME_SERVER: rmq-4wd73bxpv.rocketmq.sh.qcloud.tencenttdmq.com:8080
|
||||||
# 添加这一行
|
# 添加这一行
|
||||||
VIEWSH_GATEWAY_RPC_URL: "http://aiot-iot-server:48091"
|
VIEWSH_IOT_GATEWAY_RPC_URL: "http://aiot-iot-server:48091"
|
||||||
volumes:
|
volumes:
|
||||||
- app-logs:/app/logs
|
- app-logs:/app/logs
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ viewsh:
|
|||||||
gateway:
|
gateway:
|
||||||
# 设备 RPC 配置
|
# 设备 RPC 配置
|
||||||
rpc:
|
rpc:
|
||||||
url: ${VIEWSH_GATEWAY_RPC_URL:http://aiot-iot-server:48091}
|
url: ${VIEWSH_IOT_GATEWAY_RPC_URL:http://aiot-iot-server:48091}
|
||||||
connect-timeout: ${VIEWSH_RPC_CONNECT_TIMEOUT:30s}
|
connect-timeout: ${VIEWSH_RPC_CONNECT_TIMEOUT:30s}
|
||||||
read-timeout: ${VIEWSH_RPC_READ_TIMEOUT:30s}
|
read-timeout: ${VIEWSH_RPC_READ_TIMEOUT:30s}
|
||||||
# 设备 Token 配置
|
# 设备 Token 配置
|
||||||
|
|||||||
Reference in New Issue
Block a user