From cea43d282cb27fcec09d40c3a9bc2cf4c2bb6b76 Mon Sep 17 00:00:00 2001 From: lzh Date: Fri, 16 Jan 2026 15:31:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Diot-gateway=E8=B0=83?= =?UTF-8?q?=E7=94=A8iot-server=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.core.yml | 3 ++- .../src/main/resources/application-prod.yaml | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docker-compose.core.yml b/docker-compose.core.yml index c6aeb94..d98a289 100644 --- a/docker-compose.core.yml +++ b/docker-compose.core.yml @@ -211,7 +211,8 @@ services: SPRING_DATA_REDIS_PASSWORD: "9kHXcZ1ojFsD" ROCKETMQ_NAME_SERVER: 172.17.16.14:9876 - + # 添加这一行 + VIEWSH_IOT_GATEWAY_RPC_URL: "http://aiot-iot-server:48091" volumes: - app-logs:/app/logs deploy: diff --git a/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application-prod.yaml b/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application-prod.yaml index 3e3e87d..3d3a772 100644 --- a/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application-prod.yaml +++ b/viewsh-module-iot/viewsh-module-iot-gateway/src/main/resources/application-prod.yaml @@ -36,13 +36,13 @@ viewsh: gateway: # 设备 RPC 配置 rpc: - url: ${IOT_RPC_URL:http://127.0.0.1:48091} - connect-timeout: ${IOT_RPC_CONNECT_TIMEOUT:30s} - read-timeout: ${IOT_RPC_READ_TIMEOUT:30s} + url: ${VIEWSH_GATEWAY_RPC_URL:http://127.0.0.1:48091} + connect-timeout: ${VIEWSH_RPC_CONNECT_TIMEOUT:30s} + read-timeout: ${VIEWSH_RPC_READ_TIMEOUT:30s} # 设备 Token 配置 token: - secret: ${IOT_TOKEN_SECRET:viewshIotGatewayTokenSecret123456789} - expiration: ${IOT_TOKEN_EXPIRATION:7d} + secret: ${VIEWSH_IOT_TOKEN_SECRET:viewshIotGatewayTokenSecret123456789} + expiration: ${VIEWSH_IOT_TOKEN_EXPIRATION:7d} # 协议配置 protocol: