Skip to content

Commit

Permalink
!186 发布 2.2.1 正式版 安全性提升
Browse files Browse the repository at this point in the history
Merge pull request !186 from 疯狂的狮子Li/dev
  • Loading branch information
JavaLionLi authored and gitee-org committed Aug 26, 2024
2 parents ccc8e24 + 2c970e9 commit a703385
Show file tree
Hide file tree
Showing 263 changed files with 1,846 additions and 18,373 deletions.
2 changes: 1 addition & 1 deletion .run/ruoyi-auth.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-auth" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-auth:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-auth:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-auth/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-gateway.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-gateway" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-gateway:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-gateway:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-gateway/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-gen.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-gen" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-gen:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-gen:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-gen/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-job.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-job" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-job:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-job:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-job/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-monitor.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-monitor" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-monitor:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-monitor:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-monitor/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-nacos.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-nacos" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-nacos:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-nacos:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-nacos/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-resource.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-resource" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-resource:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-resource:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-resource/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-seata-server.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-seata-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-seata-server:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-seata-server:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-seata-server/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-sentinel-dashboard.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-sentinel-dashboard" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-sentinel-dashboard:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-sentinel-dashboard:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-sentinel-dashboard/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-snailjob-server.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<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:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-snailjob-server:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-snailjob-server/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-system.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-system" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-system:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-system:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-system/Dockerfile" />
</settings>
Expand Down
2 changes: 1 addition & 1 deletion .run/ruoyi-workflow.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-workflow" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-workflow:2.2.0" />
<option name="imageTag" value="ruoyi/ruoyi-workflow:2.2.1" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-workflow/Dockerfile" />
</settings>
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://gitee.com/dromara/RuoYi-Cloud-Plus/blob/master/LICENSE)
[![使用IntelliJ IDEA开发维护](https://img.shields.io/badge/IntelliJ%20IDEA-提供支持-blue.svg)](https://www.jetbrains.com/?from=RuoYi-Cloud-Plus)
<br>
[![RuoYi-Cloud-Plus](https://img.shields.io/badge/RuoYi_Cloud_Plus-2.2.0-success.svg)](https://gitee.com/dromara/RuoYi-Cloud-Plus)
[![RuoYi-Cloud-Plus](https://img.shields.io/badge/RuoYi_Cloud_Plus-2.2.1-success.svg)](https://gitee.com/dromara/RuoYi-Cloud-Plus)
[![Spring Boot](https://img.shields.io/badge/Spring%20Boot-3.1-blue.svg)]()
[![JDK-17](https://img.shields.io/badge/JDK-17-green.svg)]()
[![JDK-19](https://img.shields.io/badge/JDK-21-green.svg)]()
[![JDK-21](https://img.shields.io/badge/JDK-21-green.svg)]()

> RuoYi-Cloud-Plus `微服务通用权限管理系统` 重写 RuoYi-Cloud 全方位升级(不兼容原框架)
Expand Down Expand Up @@ -66,12 +66,14 @@ CCFlow 驰聘低代码-流程-表单 - https://gitee.com/opencc/RuoYi-JFlow <br>
| 数据库连接池 | 采用 HikariCP Spring官方内置连接池 配置简单 以性能与稳定性闻名天下 | 采用 druid bug众多 社区维护差 活跃度低 配置众多繁琐性能一般 |
| 数据库主键 | 采用 雪花ID 基于时间戳的 有序增长 唯一ID 再也不用为分库分表 数据合并主键冲突重复而发愁 | 采用 数据库自增ID 支持数据量有限 不支持多数据源主键唯一 |
| WebSocket协议 | 基于 Spring 封装的 WebSocket 协议 扩展了Token鉴权与分布式会话同步 不再只是基于单机的废物 ||
| SSE推送 | 采用 Spring SSE 实现 扩展了Token鉴权与分布式会话同步 ||
| 序列化 | 采用 Jackson Spring官方内置序列化 靠谱!!! | 采用 fastjson bugjson 远近闻名 |
| 分布式幂等 | 参考美团GTIS防重系统简化实现(细节可看文档) | 手动编写注解基于aop实现 |
| 分布式任务调度 | 采用 SnailJob 天生支持分布式 统一的管理中心 支持多种数据库 支持分片重试DAG任务流等 | 采用 Quartz 基于数据库锁性能差 集群需要做很多配置与改造 |
| 分布式日志中心 | 采用 ELK 业界成熟解决方案 实时收集所有服务的运行日志 快速发现定位问题 ||
| 分布式搜索引擎 | 采用 ElasticSearch、Easy-Es 以 Mybatis-Plus 方式操作 ElasticSearch ||
| 分布式消息队列 | 采用 支持 Kafka、RocketMQ、RabbitMQ 各种 延迟消息 事务消息 流消息 ||
| 分布式消息总线 | 采用 SpringCloud Bus 实现事件总线 跨服务通知 支持 Kafka、RocketMQ、RabbitMQ ||
| 分库分表功能 | 采用 Apache Sharding-Proxy 代理服务无入侵支持分库分表 只需编写分库分表规则即可 ||
| 文件存储 | 采用 Minio 分布式文件存储 天生支持多机、多硬盘、多分片、多副本存储<br/>支持权限管理 安全可靠 文件可加密存储 | 采用 本机文件存储 文件裸漏 易丢失泄漏 不支持集群有单点效应 |
| 云存储 | 采用 AWS S3 协议客户端 支持 七牛、阿里、腾讯 等一切支持S3协议的厂家 | 不支持 |
Expand All @@ -80,6 +82,7 @@ CCFlow 驰聘低代码-流程-表单 - https://gitee.com/opencc/RuoYi-JFlow <br>
| 接口文档 | 采用 SpringDoc、javadoc 无注解零入侵基于java注释<br/>只需把注释写好 无需再写一大堆的文档注解了 | 采用 Springfox 已停止维护 需要编写大量的注解来支持文档生成 |
| 校验框架 | 采用 Validation 支持注解与工具类校验 注解支持国际化 | 仅支持注解 且注解不支持国际化 |
| Excel框架 | 采用 Alibaba EasyExcel 基于插件化<br/>框架对其增加了很多功能 例如 自动合并相同内容 自动排列布局 字典翻译等 | 基于 POI 手写实现 功能有限 复杂 扩展性差 |
| 工作流支持 | 支持各种复杂审批 转办 委派 加减签 会签 或签 票签 等功能 ||
| 工具类框架 | 采用 Hutool、Lombok 上百种工具覆盖90%的使用需求 基于注解自动生成 get set 等简化框架大量代码 | 手写工具稳定性差易出问题 工具数量有限 代码臃肿需自己手写 get set 等 |
| 服务监控框架 | 采用 SpringBoot-Admin 基于SpringBoot官方 actuator 探针机制<br/>实时监控服务状态 框架还为其扩展了在线日志查看监控 ||
| 全方位监控报警 | 采用 Prometheus、Grafana 多样化采集 多模板大屏展示 实时报警监控 提供详细的搭建文档 ||
Expand Down
12 changes: 9 additions & 3 deletions config/nacos/application-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ spring:
# 允许对象忽略json中不存在的属性
fail_on_unknown_properties: false
cloud:
nacos:
discovery:
metadata:
# admin 监控账号密码
username: ruoyi
userpassword: 123456
# sentinel 配置
sentinel:
# sentinel 开关
enabled: true
# 取消控制台懒加载
eager: true
transport:
# dashboard控制台服务名 用于服务发现
# 如无此配置将默认使用下方 dashboard 配置直接注册
Expand Down Expand Up @@ -103,7 +107,8 @@ spring:
# redis 密码必须配置
password: ruoyi123
database: 0
timeout: 10s
# 需要使用数字
timeout: 10000
ssl.enabled: false

# redisson 配置
Expand Down Expand Up @@ -154,6 +159,7 @@ logging:
org.springframework: warn
org.apache.dubbo: warn
com.alibaba.nacos: warn
com.alibaba.cloud.sentinel: warn
org.mybatis.spring.mapper: error
org.apache.dubbo.config: error
# 临时处理 spring 调整日志级别导致启动警告问题 不影响使用等待 alibaba 适配
Expand Down
1 change: 1 addition & 0 deletions config/nacos/ruoyi-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ security:
- /auth/register
- /auth/tenant/list
- /resource/sms/code
- /resource/sse/close
- /*/v3/api-docs
- /*/error
- /csrf
Expand Down
7 changes: 6 additions & 1 deletion config/nacos/ruoyi-resource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ spring:
# username: ${datasource.system-postgres.username}
# password: ${datasource.system-postgres.password}

# 默认/推荐使用sse推送
sse:
enabled: true
path: /sse

websocket:
# 如果关闭 需要和前端开关一起关闭
enabled: true
enabled: false
# 路径
path: /websocket
# 设置访问源地址
Expand Down
9 changes: 9 additions & 0 deletions config/nacos/ruoyi-snailjob-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ spring:
idle-timeout: 600000
max-lifetime: 900000
keepaliveTime: 30000
cloud:
nacos:
discovery:
metadata:
# 解决 er 服务有 context-path 无法监控问题
management.context-path: ${server.servlet.context-path}/actuator
# 监控账号密码
username: ruoyi
userpassword: 123456

# snail-job 服务端配置
snail-job:
Expand Down
4 changes: 4 additions & 0 deletions config/nacos/ruoyi-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spring:

# flowable配置
flowable:
# 开关 用于启动/停用工作流
enabled: true
process.enabled: ${flowable.enabled}
eventregistry.enabled: ${flowable.enabled}
# 关闭定时任务JOB
async-executor-activate: false
# 将databaseSchemaUpdate设置为true。当Flowable发现库与数据库表结构不一致时,会自动将数据库表结构升级至新版本。
Expand Down
26 changes: 13 additions & 13 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
mysql:
image: mysql:8.0.31
image: mysql:8.0.33
container_name: mysql
environment:
# 时区上海
Expand All @@ -29,7 +29,7 @@ services:
network_mode: "host"

nacos:
image: ruoyi/ruoyi-nacos:2.2.0
image: ruoyi/ruoyi-nacos:2.2.1
container_name: nacos
ports:
- "8848:8848"
Expand Down Expand Up @@ -96,7 +96,7 @@ services:
network_mode: "host"

seata-server:
image: ruoyi/ruoyi-seata-server:2.2.0
image: ruoyi/ruoyi-seata-server:2.2.1
container_name: seata-server
ports:
- "7091:7091"
Expand Down Expand Up @@ -135,7 +135,7 @@ services:
network_mode: "host"

sentinel:
image: ruoyi/ruoyi-sentinel-dashboard:2.2.0
image: ruoyi/ruoyi-sentinel-dashboard:2.2.1
container_name: sentinel
environment:
TZ: Asia/Shanghai
Expand All @@ -150,7 +150,7 @@ services:
network_mode: "host"

ruoyi-monitor:
image: ruoyi/ruoyi-monitor:2.2.0
image: ruoyi/ruoyi-monitor:2.2.1
container_name: ruoyi-monitor
environment:
# 时区上海
Expand All @@ -166,7 +166,7 @@ services:
network_mode: "host"

ruoyi-snailjob-server:
image: ruoyi/ruoyi-snailjob-server:2.2.0
image: ruoyi/ruoyi-snailjob-server:2.2.1
container_name: ruoyi-snailjob-server
environment:
# 时区上海
Expand All @@ -180,7 +180,7 @@ services:
network_mode: "host"

ruoyi-gateway:
image: ruoyi/ruoyi-gateway:2.2.0
image: ruoyi/ruoyi-gateway:2.2.1
container_name: ruoyi-gateway
environment:
# 时区上海
Expand All @@ -196,7 +196,7 @@ services:
network_mode: "host"

ruoyi-auth:
image: ruoyi/ruoyi-auth:2.2.0
image: ruoyi/ruoyi-auth:2.2.1
container_name: ruoyi-auth
environment:
# 时区上海
Expand All @@ -212,7 +212,7 @@ services:
network_mode: "host"

ruoyi-system:
image: ruoyi/ruoyi-system:2.2.0
image: ruoyi/ruoyi-system:2.2.1
container_name: ruoyi-system
environment:
# 时区上海
Expand All @@ -228,7 +228,7 @@ services:
network_mode: "host"

ruoyi-gen:
image: ruoyi/ruoyi-gen:2.2.0
image: ruoyi/ruoyi-gen:2.2.1
container_name: ruoyi-gen
environment:
# 时区上海
Expand All @@ -244,7 +244,7 @@ services:
network_mode: "host"

ruoyi-job:
image: ruoyi/ruoyi-job:2.2.0
image: ruoyi/ruoyi-job:2.2.1
container_name: ruoyi-job
environment:
# 时区上海
Expand All @@ -260,7 +260,7 @@ services:
network_mode: "host"

ruoyi-resource:
image: ruoyi/ruoyi-resource:2.2.0
image: ruoyi/ruoyi-resource:2.2.1
container_name: ruoyi-resource
environment:
# 时区上海
Expand All @@ -276,7 +276,7 @@ services:
network_mode: "host"

ruoyi-workflow:
image: ruoyi/ruoyi-workflow:2.2.0
image: ruoyi/ruoyi-workflow:2.2.1
container_name: ruoyi-workflow
environment:
# 时区上海
Expand Down
5 changes: 4 additions & 1 deletion docker/nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# websocket参数
proxy_read_timeout 86400s;
# sse 与 websocket参数
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
proxy_cache off;
proxy_pass http://server/;
}

Expand Down
2 changes: 1 addition & 1 deletion docker/skywalking/agent/config/agent.config
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ agent.force_reconnection_period=${SW_AGENT_FORCE_RECONNECTION_PERIOD:1}
agent.operation_name_threshold=${SW_AGENT_OPERATION_NAME_THRESHOLD:150}

# Keep tracing even the backend is not available if this value is true.
agent.keep_tracing=${SW_AGENT_KEEP_TRACING:false}
agent.keep_tracing=${SW_AGENT_KEEP_TRACING:true}

# The agent use gRPC plain text in default.
# If true, SkyWalking agent uses TLS even no CA file detected.
Expand Down
Binary file not shown.
Loading

0 comments on commit a703385

Please sign in to comment.