فهرست منبع

自动上传:xpg-ry

fugui001 2 ماه پیش
والد
کامیت
d1cec31224

+ 0 - 12
.run/ruoyi-monitor-admin.run.xml

@@ -1,12 +0,0 @@
-<component name="ProjectRunConfigurationManager">
-  <configuration default="false" name="ruoyi-monitor-admin" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
-    <deployment type="dockerfile">
-      <settings>
-        <option name="imageTag" value="ruoyi/ruoyi-monitor-admin:5.4.0" />
-        <option name="buildOnly" value="true" />
-        <option name="sourceFilePath" value="ruoyi-extend/ruoyi-monitor-admin/Dockerfile" />
-      </settings>
-    </deployment>
-    <method v="2" />
-  </configuration>
-</component>

+ 0 - 12
.run/ruoyi-server.run.xml

@@ -1,12 +0,0 @@
-<component name="ProjectRunConfigurationManager">
-  <configuration default="false" name="ruoyi-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
-    <deployment type="dockerfile">
-      <settings>
-        <option name="imageTag" value="ruoyi/ruoyi-server:5.4.0" />
-        <option name="buildOnly" value="true" />
-        <option name="sourceFilePath" value="ruoyi-admin/Dockerfile" />
-      </settings>
-    </deployment>
-    <method v="2" />
-  </configuration>
-</component>

+ 0 - 12
.run/ruoyi-snailjob-server.run.xml

@@ -1,12 +0,0 @@
-<component name="ProjectRunConfigurationManager">
-  <configuration default="false" name="ruoyi-snailjob-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
-    <deployment type="dockerfile">
-      <settings>
-        <option name="imageTag" value="ruoyi/ruoyi-snailjob-server:5.4.0" />
-        <option name="buildOnly" value="true" />
-        <option name="sourceFilePath" value="ruoyi-extend/ruoyi-snailjob-server/Dockerfile" />
-      </settings>
-    </deployment>
-    <method v="2" />
-  </configuration>
-</component>

+ 3 - 3
ruoyi-admin/src/main/resources/application-dev.yml

@@ -49,7 +49,7 @@ spring:
           driverClassName: com.mysql.cj.jdbc.Driver
           # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
           # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
-          url: jdbc:mysql://192.168.0.193:3306/db_ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
+          url: jdbc:mysql://192.168.0.193:3306/game_admin?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
           username: guest
           password: 123456
         mysql2:
@@ -106,14 +106,14 @@ spring:
 --- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
 spring.data:
   redis:
-    # 地址
+    # 地址192.168.0.193
     host: 192.168.0.193
     # 端口,默认为6379
     port: 6379
     # 数据库索引
     database: 0
     # redis 密码必须配置
-    password: 123456
+    auth: 123456
     # 连接超时时间
     timeout: 10s
     # 是否开启ssl

+ 13 - 4
ruoyi-admin/src/main/resources/application.yml

@@ -1,12 +1,14 @@
 # 开发环境配置
 server:
-  # 服务器的HTTP端口,默认为8080
+  # 服务器的HTTP端口,默认为8080 10301
   port: 8080
   servlet:
     # 应用的访问路径
     context-path: /
   # undertow 配置
   undertow:
+    # SSL连接超时
+    ssl-engine-instance-cache-size: 50
     # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
     max-http-post-size: -1
     # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
@@ -14,6 +16,8 @@ server:
     buffer-size: 1024
     # 是否分配的直接内存
     direct-buffers: true
+    # 请求超时时间
+    request-timeout: 300000  # 5分钟(毫秒)
     threads:
       # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
       io: 8
@@ -21,7 +25,8 @@ server:
       worker: 256
     # 连接行为控制
     keep-alive: true                    # 是否启用 HTTP Keep-Alive(默认 true)
-    no-request-timeout: 10s             # ⭐ 新增:连接建立后,10 秒内未收到请求数据则关闭
+    no-request-timeout: 300s             # ⭐ 新增:连接建立后,10 秒内未收到请求数据则关闭
+    idle-timeout: 300s       # 5分钟
 
 
 captcha:
@@ -65,8 +70,8 @@ spring:
   messages:
     # 国际化资源文件路径
     basename: i18n/messages
-#   profiles:
-#    active: @profiles.active@
+    # profiles:
+    # active: @profiles.active@
   profiles:
       active: dev
   # 文件上传
@@ -76,6 +81,10 @@ spring:
       max-file-size: 100MB
       # 设置总上传的文件大小
       max-request-size: 100MB
+      # 启用延迟解析
+      resolve-lazily: true
+  lifecycle:
+    timeout-per-shutdown-phase: 30s
   mvc:
     # 设置静态资源路径 防止所有请求都去查静态资源
     static-path-pattern: /static/**