spring: # redis 配置 redis: # 地址 host: localhost # 端口,默认为6379 port: 6379 # 密码 password: # 连接超时时间 timeout: 10s lettuce: pool: # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最大空闲连接 max-idle: 8 # 连接池的最大数据库连接数 max-active: 8 # 连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms mqtt: server: enabled: true # 是否开启服务端,默认:true # ip: 0.0.0.0 # 服务端 ip 默认为空,0.0.0.0,建议不要设置 port: 1883 # 端口,默认:1883 name: Mica-Mqtt-Server # 名称,默认:Mica-Mqtt-Server buffer-allocator: HEAP # 堆内存和堆外内存,默认:堆内存 heartbeat-timeout: 120000 # 心跳超时,单位毫秒,默认: 1000 * 120 read-buffer-size: 8KB # 接收数据的 buffer size,默认:8k max-bytes-in-message: 10MB # 消息解析最大 bytes 长度,默认:10M debug: true # 如果开启 prometheus 指标收集,建议关闭 stat-enable: true # 开启指标收集,debug 和 prometheus 开启时需要打开,默认开启,关闭节省内存 web-port: 8083 # http、websocket 端口,默认:8083 websocket-enable: true # 是否开启 websocket,默认: true http-enable: true # 是否开启 http api,默认: false http-basic-auth: enable: true # 是否开启 http basic auth,默认: false username: "mica" # http basic auth 用户名 password: "mica" # http basic auth 密码