浏览代码

feat: 修改部署配置

yangliu 4 月之前
父节点
当前提交
684bd7f1df

+ 20 - 1
device-service-server/src/main/resources/bootstrap-dev.yml

@@ -14,7 +14,6 @@ spring:
     host: 8.130.28.21
     port: 6379
     database: 5
-    password: Hfln@1024
     timeout: 10s
     lettuce:
       pool:
@@ -56,3 +55,23 @@ lnxx:
       notifyId: 2368474
       region: ap-guangzhou
       sdkAppId: 1400966707
+
+mqtt:
+  broker: tcp://8.130.28.21:1883
+  client:
+    id: hfln-device-service-${random.uuid}
+  username: admin
+  password: public
+
+
+# 设备配置
+device:
+  keepalive:
+    timeout: 90000  # 设备保活超时时间,单位毫秒
+  alarm:
+    ack:
+      timeout: 300000  # 设备告警确认超时时间,单位毫秒
+    retention:
+      time: 60  # 滞留时间阈值,单位秒
+      keep-time: 30  # 滞留持续时间,单位秒
+      alarm-time: 180  # 滞留告警时间,单位秒

+ 0 - 1
device-service-server/src/main/resources/bootstrap-local.yml

@@ -63,7 +63,6 @@ mqtt:
     id: hfln-device-service-${random.uuid}
   username: admin
   password: public
-  qos: 1
 
 
 # 设备配置

+ 1 - 1
device-service-server/src/main/resources/bootstrap.yml

@@ -5,7 +5,7 @@ spring:
     pathmatch:
       matching-strategy: ant_path_matcher
   profiles:
-    active: local
+    active: dev
   application:
     name: device-service-server