mirror of
https://gitee.com/nicefold/seewis-cloud-plus.git
synced 2026-10-14 10:02:13 +08:00
refactor(modules): rename modules and externalize config / 重命名模块并外置配置
Rename Maven modules and directories to seewis-* while preserving Java package paths. Allow Nacos and Logstash settings from environment variables or Maven -D overrides, and include the existing agent documentation updates.
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
|---|---|---|
|
||||
| `application-common.yml` | 所有服务共享的公共配置 | `spring.data.redis`(host/port/password)、`spring.rabbitmq`、`sa-token.jwt-secret-key`(务必换成自己的随机串)、监控账号(nacos discovery metadata) |
|
||||
| `datasource.yml` | 数据库连接 | 各库 jdbc 地址/账号/密码(system / job / ai / workflow) |
|
||||
| `ruoyi-auth.yml` | 认证服务 | `security.captcha`(验证码开关与类型)、`security.xcx.apps`(小程序 appid/密钥兜底配置,正式建议用参数管理 `sys.account.xcxApps`)、`justauth`(三方登录密钥) |
|
||||
| `ruoyi-gateway.yml` | 网关 | `security.ignore.whites`(放行白名单)、路由规则 |
|
||||
| `ruoyi-system.yml` | 系统模块 | `spring.liquibase.enabled`:**全新空库首次启动改为 `true`** 初始化表结构和种子数据,初始化完成后建议改回 `false` |
|
||||
| `ruoyi-resource.yml` / `ruoyi-job.yml` / `ruoyi-workflow.yml` / `ruoyi-gen.yml` / `ruoyi-ai.yml` / `ruoyi-snailai-server.yml` / `ruoyi-snailjob-server.yml` | 对应模块 | 各自的 liquibase 开关、第三方参数,按需修改 |
|
||||
| `ruoyi-monitor.yml` | SpringBoot Admin 监控 | 监控服务账号密码,按需修改 |
|
||||
| `seewis-auth.yml` | 认证服务 | `security.captcha`(验证码开关与类型)、`security.xcx.apps`(小程序 appid/密钥兜底配置,正式建议用参数管理 `sys.account.xcxApps`)、`justauth`(三方登录密钥) |
|
||||
| `seewis-gateway.yml` | 网关 | `security.ignore.whites`(放行白名单)、路由规则 |
|
||||
| `seewis-system.yml` | 系统模块 | `spring.liquibase.enabled`:**全新空库首次启动改为 `true`** 初始化表结构和种子数据,初始化完成后建议改回 `false` |
|
||||
| `seewis-resource.yml` / `seewis-job.yml` / `seewis-workflow.yml` / `seewis-gen.yml` / `seewis-ai.yml` / `seewis-snailai-server.yml` / `seewis-snailjob-server.yml` | 对应模块 | 各自的 liquibase 开关、第三方参数,按需修改 |
|
||||
| `seewis-monitor.yml` | SpringBoot Admin 监控 | 监控服务账号密码,按需修改 |
|
||||
| `seata-server.properties` | Seata 服务端配置 | 脚本只导入 `*.yml`,此文件需手动在 Nacos 控制台创建(dataId `seata-server.properties`,group `DEFAULT_GROUP`,类型 `properties`) |
|
||||
|
||||
> 注意:**导入会覆盖服务器上 dataId 相同的同名配置**(按 dataId 全量覆盖),服务器上已有个性化修改的配置请先备份或在控制台核对差异。
|
||||
|
||||
@@ -258,7 +258,7 @@ seata:
|
||||
registry:
|
||||
type: nacos
|
||||
nacos:
|
||||
application: ruoyi-seata-server
|
||||
application: seewis-seata-server
|
||||
server-addr: ${spring.cloud.nacos.server-addr}
|
||||
group: ${spring.cloud.nacos.discovery.group}
|
||||
username: ${spring.cloud.nacos.username}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
service.vgroupMapping.ruoyi-auth-group=default
|
||||
service.vgroupMapping.ruoyi-system-group=default
|
||||
service.vgroupMapping.ruoyi-resource-group=default
|
||||
service.vgroupMapping.ruoyi-workflow-group=default
|
||||
service.vgroupMapping.seewis-auth-group=default
|
||||
service.vgroupMapping.seewis-system-group=default
|
||||
service.vgroupMapping.seewis-resource-group=default
|
||||
service.vgroupMapping.seewis-workflow-group=default
|
||||
|
||||
service.enableDegrade=false
|
||||
service.disableGlobalTransaction=false
|
||||
|
||||
@@ -2,7 +2,7 @@ snail-ai:
|
||||
# 启用客户端模式
|
||||
enabled: true
|
||||
# ==================== Server 连接 ====================
|
||||
# Server 端 gRPC 地址(即 ruoyi-snailai-server 的 snail-ai.server.grpc-port)
|
||||
# Server 端 gRPC 地址(即 seewis-snailai-server 的 snail-ai.server.grpc-port)
|
||||
server-host: 127.0.0.1
|
||||
server-port: 18888
|
||||
# ==================== 客户端配置 ====================
|
||||
@@ -45,62 +45,62 @@ spring:
|
||||
enabled: true
|
||||
routes:
|
||||
# 认证中心
|
||||
- id: ruoyi-auth
|
||||
uri: lb://ruoyi-auth
|
||||
- id: seewis-auth
|
||||
uri: lb://seewis-auth
|
||||
predicates:
|
||||
- Path=/auth/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 代码生成
|
||||
- id: ruoyi-gen
|
||||
uri: lb://ruoyi-gen
|
||||
- id: seewis-gen
|
||||
uri: lb://seewis-gen
|
||||
predicates:
|
||||
- Path=/tool/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 系统模块
|
||||
- id: ruoyi-system
|
||||
uri: lb://ruoyi-system
|
||||
- id: seewis-system
|
||||
uri: lb://seewis-system
|
||||
predicates:
|
||||
- Path=/system/**,/monitor/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 资源服务
|
||||
- id: ruoyi-resource
|
||||
uri: lb://ruoyi-resource
|
||||
- id: seewis-resource
|
||||
uri: lb://seewis-resource
|
||||
predicates:
|
||||
- Path=/resource/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# AI服务
|
||||
- id: ruoyi-ai
|
||||
uri: lb://ruoyi-ai
|
||||
- id: seewis-ai
|
||||
uri: lb://seewis-ai
|
||||
predicates:
|
||||
- Path=/snail-ai/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# workflow服务
|
||||
- id: ruoyi-workflow
|
||||
uri: lb://ruoyi-workflow
|
||||
- id: seewis-workflow
|
||||
uri: lb://seewis-workflow
|
||||
predicates:
|
||||
- Path=/workflow/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# warm-flow服务
|
||||
- id: warm-flow
|
||||
uri: lb://ruoyi-workflow
|
||||
uri: lb://seewis-workflow
|
||||
predicates:
|
||||
- Path=/warm-flow-ui/**,/warm-flow/**
|
||||
# 演示服务
|
||||
- id: ruoyi-demo
|
||||
uri: lb://ruoyi-demo
|
||||
- id: seewis-demo
|
||||
uri: lb://seewis-demo
|
||||
predicates:
|
||||
- Path=/demo/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# MQ演示服务
|
||||
- id: ruoyi-test-mq
|
||||
uri: lb://ruoyi-test-mq
|
||||
- id: seewis-test-mq
|
||||
uri: lb://seewis-test-mq
|
||||
predicates:
|
||||
- Path=/test-mq/**
|
||||
filters:
|
||||
@@ -25,7 +25,7 @@ snail-job:
|
||||
token: "SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT"
|
||||
server:
|
||||
# 从 nacos 获取服务
|
||||
server-name: ruoyi-snailjob-server
|
||||
server-name: seewis-snailjob-server
|
||||
# 服务名优先 ip垫底
|
||||
host: 127.0.0.1
|
||||
port: 17888
|
||||
@@ -10,7 +10,7 @@ spring:
|
||||
title: RuoYi-Cloud-Plus服务监控中心
|
||||
discovery:
|
||||
# seata 不具有健康检查的能力 防止报错排除掉
|
||||
ignored-services: ruoyi-seata-server
|
||||
ignored-services: seewis-seata-server
|
||||
# 忽略无用警告
|
||||
thymeleaf:
|
||||
check-template-location: false
|
||||
Reference in New Issue
Block a user