You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#Tomcat端口
|
|
|
|
|
server:
|
|
|
|
|
port: 9605
|
|
|
|
|
|
|
|
|
|
# broker监听端口
|
|
|
|
|
mqtt:
|
|
|
|
|
server:
|
|
|
|
|
port: 1883 # MQTT端口,默认:1883
|
|
|
|
|
web-port: 8083 # http、websocket 端口,默认:8083
|
|
|
|
|
|
|
|
|
|
#broker相关配置
|
|
|
|
|
broker:
|
|
|
|
|
#客户端ClientId白名单,不进行接入校验,多个ClientId用逗号隔开
|
|
|
|
|
whitelist: hw-data-process-1
|
|
|
|
|
#设备接入状态推送
|
|
|
|
|
connectStatus:
|
|
|
|
|
enable: true #是否启用设备连接状态推送
|
|
|
|
|
topic: /device/status/v1 #设备连接状态推送主题
|
|
|
|
|
|
|
|
|
|
# Spring
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
# 应用名称
|
|
|
|
|
name: hw-mqtt-broker
|
|
|
|
|
profiles:
|
|
|
|
|
# 环境配置
|
|
|
|
|
active: prod
|
|
|
|
|
cloud:
|
|
|
|
|
nacos:
|
|
|
|
|
config:
|
|
|
|
|
# 配置中心地址
|
|
|
|
|
server-addr: 124.70.63.37:8848
|
|
|
|
|
# 配置文件格式
|
|
|
|
|
file-extension: yml
|
|
|
|
|
# 共享配置
|
|
|
|
|
shared-configs:
|
|
|
|
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|