From 2eee79774a6d1f150b30272ea5902c7a22235db6 Mon Sep 17 00:00:00 2001 From: Wen JY Date: Tue, 22 Aug 2023 11:20:41 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20broker=20yml=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-server.yml | 54 ------------------- .../src/main/resources/application.yml | 33 ------------ 2 files changed, 87 deletions(-) delete mode 100644 ruoyi-modules/hw-mqtt-broker/src/main/resources/application-server.yml delete mode 100644 ruoyi-modules/hw-mqtt-broker/src/main/resources/application.yml diff --git a/ruoyi-modules/hw-mqtt-broker/src/main/resources/application-server.yml b/ruoyi-modules/hw-mqtt-broker/src/main/resources/application-server.yml deleted file mode 100644 index d73d428..0000000 --- a/ruoyi-modules/hw-mqtt-broker/src/main/resources/application-server.yml +++ /dev/null @@ -1,54 +0,0 @@ - -server: - port: 30013 -spring: - # redis 配置 - redis: - # 地址 - host: huawei-redis - # 端口,默认为6379 - port: 6379 - # 密码 - password: admin123 - # 连接超时时间 - 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: Mqtt-Broker # 名称,默认: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 - auth: - enable: false # 是否开启 mqtt 认证 - username: mica # mqtt 认证用户名 - password: mica # mqtt 认证密码 - debug: true # 如果开启 prometheus 指标收集建议关闭 - stat-enable: true # 开启指标收集,debug 和 prometheus 开启时需要打开,默认开启,关闭节省内存 - web-port: 8083 # http、websocket 端口,默认:8083 - websocket-enable: true # 是否开启 websocket,默认: true - http-enable: false # 是否开启 http api,默认: false - http-basic-auth: - enable: false # 是否开启 http basic auth,默认: false - username: mica # http basic auth 用户名 - password: mica # http basic auth 密码 - ssl: # mqtt tcp ssl 认证 - enabled: false # 是否开启 ssl 认证,2.1.0 开始支持双向认证 - keystore-path: # 必须参数:ssl keystore 目录,支持 classpath:/ 路径。 - keystore-pass: # 必选参数:ssl keystore 密码 - truststore-path: # 可选参数:ssl 双向认证 truststore 目录,支持 classpath:/ 路径。 - truststore-pass: # 可选参数:ssl 双向认证 truststore 密码 - client-auth: none # 是否需要客户端认证(双向认证),默认:NONE(不需要) diff --git a/ruoyi-modules/hw-mqtt-broker/src/main/resources/application.yml b/ruoyi-modules/hw-mqtt-broker/src/main/resources/application.yml deleted file mode 100644 index eebb355..0000000 --- a/ruoyi-modules/hw-mqtt-broker/src/main/resources/application.yml +++ /dev/null @@ -1,33 +0,0 @@ - -spring: - application: - name: Mqtt-Broker - profiles: - active: server -springdoc: - swagger-ui: - urls: - - name: swagger - url: /v3/api-docs -# actuator management -management: - info: - defaults: - enabled: true - metrics: - tags: - application: ${spring.application.name} - endpoint: - health: - show-details: ALWAYS - prometheus: - enabled: true - endpoints: - web: - exposure: - include: '*' -logging: - level: - root: info - server: info # t-io ??????? - org.tio: info # t-io ???????