From 09a9efac0d7416076cf2123d432a165f8cc096eb Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: Fri, 04 Aug 2023 14:01:26 +0800
Subject: [PATCH] 优化
---
ruoyi-admin/src/main/resources/logback.xml | 6 +++---
ruoyi-admin/src/main/resources/application-ard.yml | 45 ++++++++++++++++++++++++++++++---------------
2 files changed, 33 insertions(+), 18 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/application-ard.yml b/ruoyi-admin/src/main/resources/application-ard.yml
index 8ded130..a1e898d 100644
--- a/ruoyi-admin/src/main/resources/application-ard.yml
+++ b/ruoyi-admin/src/main/resources/application-ard.yml
@@ -1,28 +1,43 @@
+# webrtc-streamer配置
+webrtc:
+ enabled: false
+ host: 127.0.0.1:8000
# minio配置
minio:
- endpoint: http://192.168.1.15:9001
+ enabled: false
+ endpoint: http://192.168.1.227:9000
accessKey: admin
secretKey: xzx12345
+ path: G:/DATA
# forest配置
forest:
- bean-id: config0 # 在spring上下文中bean的id, 默认值为forestConfiguration
- backend: okhttp3 # 后端HTTP API: okhttp3 【支持`okhttp3`/`httpclient`】
- max-connections: 1000 # 连接池最大连接数,默认值为500
- max-route-connections: 500 # 每个路由的最大连接数,默认值为500
- timeout: 13000 # 请求超时时间,单位为毫秒, 默认值为3000
- connect-timeout: 3000 # 连接超时时间,单位为毫秒, 默认值为2000
- retry-count: 0 # 请求失败后重试次数,默认为0次不重试
- ssl-protocol: SSLv3 # 单向验证的HTTPS的默认SSL协议,默认为SSLv3
- logEnabled: true # 打开或关闭日志,默认为true
+ backend: okhttp3 # 后端HTTP框架(默认为 okhttp3)
+ max-connections: 1000 # 连接池最大连接数(默认为 500)
+ max-route-connections: 500 # 每个路由的最大连接数(默认为 500)
+ max-request-queue-size: 100 # [自v1.5.22版本起可用] 最大请求等待队列大小
+ max-async-thread-size: 300 # [自v1.5.21版本起可用] 最大异步线程数
+ max-async-queue-size: 16 # [自v1.5.22版本起可用] 最大异步线程池队列大小
+ timeout: 3000 # [已不推荐使用] 请求超时时间,单位为毫秒(默认为 3000)
+ connect-timeout: 3000 # 连接超时时间,单位为毫秒(默认为 timeout)
+ read-timeout: 3000 # 数据读取超时时间,单位为毫秒(默认为 timeout)
+ max-retry-count: 0 # 请求失败后重试次数(默认为 0 次不重试)
+ ssl-protocol: TLS # 单向验证的HTTPS的默认TLS协议(默认为 TLS)
+ log-enabled: true # 打开或关闭日志(默认为 true)
+ log-request: true # 打开/关闭Forest请求日志(默认为 true)
+ log-response-status: true # 打开/关闭Forest响应状态日志(默认为 true)
+ log-response-content: true # 打开/关闭Forest响应内容日志(默认为 false)
+ async-mode: platform # [自v1.5.27版本起可用] 异步模式(默认为 platform)
+#流媒体转码服务器
+mediamtx:
+ enabled: false
+ host: 127.0.0.1
#mqtt
mqtt:
host: tcp://192.168.1.15:1883
- clientId: m241
+ clientId: m3
username: admin
password: xzx12345
- topic: tube,stealelec,radar
+ topic: apponekey
timeout: 100
keepalive: 60
- enabled: true
-mediamtx:
- host: 127.0.0.1
\ No newline at end of file
+ enabled: true
\ No newline at end of file
diff --git a/ruoyi-admin/src/main/resources/logback.xml b/ruoyi-admin/src/main/resources/logback.xml
index ab7a75a..d3d3d31 100644
--- a/ruoyi-admin/src/main/resources/logback.xml
+++ b/ruoyi-admin/src/main/resources/logback.xml
@@ -225,7 +225,7 @@
<appender-ref ref="minio"/>
</logger>
<!--hiksdk日志打印等级-->
- <logger name="hikSdk" level="DEBUG">
+ <logger name="hikSdk" level="INFO">
<appender-ref ref="hikSdk"/>
</logger>
<!--盗电报警日志打印等级-->
@@ -241,7 +241,7 @@
<appender-ref ref="PatrolInspectionTask"/>
</logger>
<!--mqtt日志打印等级-->
- <logger name="mqtt" level="DEBUG">
+ <logger name="mqtt" level="INFO">
<appender-ref ref="mqtt"/>
</logger>
<!--guideQueue日志打印等级-->
@@ -249,7 +249,7 @@
<appender-ref ref="guideQueue"/>
</logger>
<!--rongCloud日志打印等级-->
- <logger name="rongCloud" level="DEBUG">
+ <logger name="rongCloud" level="INFO">
<appender-ref ref="rongCloud"/>
</logger>
<!--cmd日志打印等级-->
--
Gitblit v1.9.3