diff --git a/docs/scripts/Salon SIT自动发布配置说明_20260901.md b/docs/scripts/Salon SIT自动发布配置说明_20260901.md index 8f054509..054a6863 100644 --- a/docs/scripts/Salon SIT自动发布配置说明_20260901.md +++ b/docs/scripts/Salon SIT自动发布配置说明_20260901.md @@ -7,7 +7,7 @@ - Core/Gateway:`192.168.10.106:22`,独立目录 `/opt/jc-salon-core-sit`、`/opt/jc-salon-gateway-sit`,服务名 `jc-salon-core-sit`、`jc-salon-gateway-sit`。 - 前端:与生产共用阿里云入口服务器,独立目录 `/opt/jc-salon-frontend-sit`,域名 `sit.yunail.art`。 - 前端构建阶段显式注入 `VITE_API_BASE_URL=https://sit.yunail.art/api` 和 `VITE_ADMIN_API_BASE_URL=https://sit.yunail.art/admin/api`,避免构建产物使用生产接口默认值。 -- SIT 中间件:Nacos `192.168.10.103:8848`、MySQL `192.168.10.102:3306`、Redis `192.168.10.101:6379`、RabbitMQ `192.168.10.104:5672`,由 SIT Nacos 配置注入。 +- SIT 中间件:Nacos `192.168.10.103:8848`、MySQL `192.168.10.102:3306`、Redis `192.168.10.101:6379`、RabbitMQ `192.168.10.104:5672`、MinIO `192.168.10.105:9000`,由 SIT Nacos 配置注入。 - 工作流显式传入 `-AllowSitTarget`,仅允许 `Environment=sit` 的目标;生产工作流不传入该开关,仍拒绝非生产节点。 ## 前置配置 @@ -17,6 +17,13 @@ 3. Nginx 修改后执行 `nginx -t`,通过后再 reload。 4. 首次部署前确认 `192.168.10.106` 已安装 Java 17、systemd 可用,且网络可访问 SIT Nacos、MySQL、Redis 和 RabbitMQ。 +## 已确认的 SIT 前置条件 + +- 数据库 `jayucloud_salon` 已完成初始化;部署工作流继续跳过数据库执行。 +- RabbitMQ 已创建/更新业务用户 `xiaowang`,已授权 `/` 和 `/jayucloud-salon-sit`;业务 vhost 使用 `/jayucloud-salon-sit`。 +- MinIO 使用 `192.168.10.105:9000`;七牛 Kodo 和阿里云 OSS 沿用生产凭据与连接参数,SIT 使用带 `sit` 后缀的 Bucket。 +- RabbitMQ 密码、对象存储密钥和 Nacos 凭据仅通过受控环境或 Gitea Secrets 注入,不写入本文档。 + ## 验证 - 推送 `sit` 后确认工作流完成 Core/Gateway 健康检查和前端文件发布。 diff --git a/docs/项目变更记录.md b/docs/项目变更记录.md index e50754a6..11ca97ab 100644 --- a/docs/项目变更记录.md +++ b/docs/项目变更记录.md @@ -1,5 +1,12 @@ # 项目变更记录 +## 2026-09-04 SIT Salon 部署前置配置确认 + +- 已确认 SIT `jayucloud_salon` 数据库完成初始化,SIT 发布继续跳过数据库执行。 +- 已确认 SIT RabbitMQ 地址为 `192.168.10.104:5672`,业务 vhost 为 `/jayucloud-salon-sit`,用户为 `xiaowang`;密码不写入仓库。 +- 已确认 SIT MinIO 地址为 `192.168.10.105:9000`;七牛 Kodo、阿里云 OSS 沿用生产连接参数,Bucket 使用 SIT 后缀。 +- 修正两端 SIT Nacos 配置源的 MinIO 默认地址,避免后续配置发布覆盖运行时地址。 + ## 2026-08-28 修复 Salon 生产包 Maven 构建阻塞 - Maven 构建参数移除静默输出,保留批处理模式,流水线失败时会显示实际构建错误。 diff --git a/nacos/namespaces/sit/jayucloud-artlist/DEFAULT_GROUP/infra.yaml b/nacos/namespaces/sit/jayucloud-artlist/DEFAULT_GROUP/infra.yaml index 5fea2aab..bc5476a1 100644 --- a/nacos/namespaces/sit/jayucloud-artlist/DEFAULT_GROUP/infra.yaml +++ b/nacos/namespaces/sit/jayucloud-artlist/DEFAULT_GROUP/infra.yaml @@ -32,7 +32,7 @@ object-storage: minio: enabled: ${MINIO_ENABLED:true} - endpoint: ${MINIO_ENDPOINT:http://192.168.5.15:9000} + endpoint: ${MINIO_ENDPOINT:http://192.168.10.105:9000} bucket-name: ${MINIO_BUCKET_NAME:jayucloud-sit} access-key: ${MINIO_ACCESS_KEY} secret-key: ${MINIO_SECRET_KEY} diff --git a/nacos/namespaces/sit/jayucloud-salon/DEFAULT_GROUP/infra.yaml b/nacos/namespaces/sit/jayucloud-salon/DEFAULT_GROUP/infra.yaml index 5fea2aab..bc5476a1 100644 --- a/nacos/namespaces/sit/jayucloud-salon/DEFAULT_GROUP/infra.yaml +++ b/nacos/namespaces/sit/jayucloud-salon/DEFAULT_GROUP/infra.yaml @@ -32,7 +32,7 @@ object-storage: minio: enabled: ${MINIO_ENABLED:true} - endpoint: ${MINIO_ENDPOINT:http://192.168.5.15:9000} + endpoint: ${MINIO_ENDPOINT:http://192.168.10.105:9000} bucket-name: ${MINIO_BUCKET_NAME:jayucloud-sit} access-key: ${MINIO_ACCESS_KEY} secret-key: ${MINIO_SECRET_KEY}