From c8443ab892344fceee7bab73e17af8d330289759 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Thu, 23 Jul 2026 23:43:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20MinIO=20=E5=85=AC=E7=BD=91?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/交接与当前状态.md | 7 +++++++ docs/生产环境服务器信息总表.md | 6 ++++-- docs/运维配置与集成说明.md | 3 +++ docs/项目变更记录.md | 7 +++++++ memory/bugs.md | 7 +++++++ memory/progress.md | 7 +++++++ 6 files changed, 35 insertions(+), 2 deletions(-) diff --git a/docs/交接与当前状态.md b/docs/交接与当前状态.md index 1469e327..e49defe4 100644 --- a/docs/交接与当前状态.md +++ b/docs/交接与当前状态.md @@ -1,5 +1,12 @@ # JayuCloud 交接与当前状态 +## 2026-07-23 MinIO 公网入口接入 + +- 已完成:`minio.yunail.art` 生产公网入口已接入 `8.137.35.61`,HTTP/HTTPS 均由生产 NGINX 反代到 `wcy111.top:9000`。 +- 已完成:`minio.yunail.art` 的独立 Let's Encrypt 证书已签发并安装,证书 SAN 只包含 `minio.yunail.art`。 +- 当前可验证状态:`http://minio.yunail.art/` 和 `https://minio.yunail.art/` 的根路径返回 MinIO `403`,`/minio/health/live` 返回 `200`。 +- 后续关注:域名入口与 API/WireGuard 节点要按 `8.137.35.61` 和 `8.137.175.179` 分开记,避免再次混淆。 + 更新时间:2026-07-06 diff --git a/docs/生产环境服务器信息总表.md b/docs/生产环境服务器信息总表.md index 1c043507..5093acef 100644 --- a/docs/生产环境服务器信息总表.md +++ b/docs/生产环境服务器信息总表.md @@ -7,6 +7,7 @@ ## 使用规则 - 生产运行 namespace:`jayu-cloud`。 +- 生产网页和对象存储公网入口统一走 `8.137.35.61`,对应 `yunail.art`、`www.yunail.art`、`salon.yunail.art` 和 `minio.yunail.art`;`api.yunail.art` 仍对应 `8.137.175.179`。 - 生产业务库:`jayu_cloud`;生产写库以 `mysql02 / 192.168.5.110:3306` 为默认目标,执行前必须再次以 Nacos `datasource.yaml` 或私有敏感总表交叉确认。 - 生产服务注册名:`jy-core`、`jy-gateway`。 - 发布或重启前必须确认目标节点唯一且属于生产环境;Core 节点清单存在历史重名记录,不能只按名称模糊匹配。 @@ -16,8 +17,9 @@ | 条目 | 主机 / 域名 | 角色 | 端口 | 部署 / 服务 | 验证方式 | 凭据条目 | | --- | --- | --- | --- | --- | --- | --- | -| api.yunail.art | `8.137.175.179` | 阿里云 API 与 WireGuard 节点 | `22` / 公网入口按 Nginx 暴露 | 阿里云入口节点 | 外网解析、WireGuard 和入口健康检查 | `ssh:api.yunail.art` | -| aliyun01 | `10.66.0.3` | Nginx / 入口 / 控制面 | `80,443` | `nginx`,网页发布目录 `/opt/jy-artist-frontend/current` | `nginx -t` 后 reload;校验 `https://yunail.art/health/check` 和前端入口 | `ssh:aliyun01` | +| api.yunail.art | `8.137.175.179` | 阿里云 API / NewAPI 与 WireGuard 节点 | `22` / 公网入口按 Nginx 暴露 | 阿里云入口节点 | 外网解析、WireGuard 和入口健康检查 | `ssh:api.yunail.art` | +| yunail.art / www.yunail.art / salon.yunail.art / minio.yunail.art | `8.137.35.61` | 生产网页与对象存储公网入口 | `80,443` | 转发到 `aliyun01 / 10.66.0.3`,其中 `minio.yunail.art` 反代到 `wcy111.top:9000` | 外网解析、HTTPS 证书和 MinIO 健康检查 | `ssh:aliyun01` | +| aliyun01 | `10.66.0.3` | Nginx / 入口 / 控制面 | `80,443` | `nginx`,网页发布目录 `/opt/jy-artist-frontend/current` | `nginx -t` 后 reload;校验 `https://yunail.art/health/check`、前端入口和 `minio.yunail.art` | `ssh:aliyun01` | ## Core 应用服务器 diff --git a/docs/运维配置与集成说明.md b/docs/运维配置与集成说明.md index 9269c401..3f92cbf2 100644 --- a/docs/运维配置与集成说明.md +++ b/docs/运维配置与集成说明.md @@ -21,6 +21,9 @@ #### 生产配置约定 - 生产域名:`https://yunail.art`。 +- 生产网页和对象存储公网入口:`https://yunail.art`、`https://www.yunail.art`、`https://salon.yunail.art`、`https://minio.yunail.art`。 +- `minio.yunail.art` 的公网入口 IP:`8.137.35.61`,HTTP/HTTPS 都由生产 NGINX 反代到 `wcy111.top:9000`。 +- `minio.yunail.art` 独立证书路径:`/etc/letsencrypt/live/minio.yunail.art/`。 - Jayu Artist用户端小程序 API:`https://yunail.art/api`。 - Jayu Artist小程序内置管理端 API:`https://yunail.art/admin/api`。 - Jayu Salon小程序管理端 API:`https://yunail.art/api/admin`。 diff --git a/docs/项目变更记录.md b/docs/项目变更记录.md index 09f2a1b6..1776de9d 100644 --- a/docs/项目变更记录.md +++ b/docs/项目变更记录.md @@ -1,5 +1,12 @@ # JayuCloud 项目变更记录 +## 2026-07-23 生产 NGINX 新增 minio.yunail.art 公网入口代理 + +- 变更原因:用户新建 `minio.yunail.art`,需要通过生产 NGINX 将 HTTP/HTTPS 请求统一转发到 `wcy111.top:9000`。 +- 处理方式:在生产入口 `aliyun01 / 10.66.0.3` 上新增 `minio.yunail.art` 的 `80` 和 `443` 站点块,HTTP 与 HTTPS 均反代到 `wcy111.top:9000`;HTTPS 使用独立 Let's Encrypt 证书 `/etc/letsencrypt/live/minio.yunail.art/`。 +- 影响范围:仅影响生产 NGINX 入口和 `minio.yunail.art` 域名,不改 Core、Gateway、数据库和小程序代码。 +- 验证方式:`nginx -t` 通过并 reload;本机 `Host: minio.yunail.art` 的 HTTP `/` 返回 `403`、`/minio/health/live` 返回 `200`,HTTPS `/` 返回 `403`、`/minio/health/live` 返回 `200`;`openssl s_client -servername minio.yunail.art` 读到的证书 SAN 包含 `minio.yunail.art`。 + 更新时间:2026-07-21 diff --git a/memory/bugs.md b/memory/bugs.md index 640267dd..d6537b63 100644 --- a/memory/bugs.md +++ b/memory/bugs.md @@ -1,5 +1,12 @@ # JayuCloud 踩坑与风险记忆 +## 2026-07-23 生产入口公网 IP 不能和 API 节点混淆 + +- 问题:把 `api.yunail.art` 对应的 `8.137.175.179` 误当成网页和对象存储入口,容易在改 NGINX 或证书时选错公网 IP。 +- 原因:API / WireGuard 节点和网页 / 对象存储入口都挂在阿里云公网侧,名称都带入口属性,但实际域名绑定不同。 +- 预防:做生产入口变更前,先按域名核对 DNS、证书 SAN 和 NGINX `server_name`,不要只按“入口”字样或主机 IP 记忆判断。 +- 验证:`api.yunail.art` 保持 `8.137.175.179`,`yunail.art`、`www.yunail.art`、`salon.yunail.art`、`minio.yunail.art` 统一走 `8.137.35.61`,并用 `curl` 和证书检查确认。 + ## 2026-07-16 Web API Blob 响应拦截器需要显式类型守卫 - 问题:为店务网页端导出 Excel 增加 `responseType: 'blob'` 后,直接把 axios 归一化函数的响应类型扩成 `ApiPayload | T`,`vue-tsc` 报 `code/data/message` 属性不存在以及 `payload` 可能为 `null`。 diff --git a/memory/progress.md b/memory/progress.md index 46724470..a8d1838d 100644 --- a/memory/progress.md +++ b/memory/progress.md @@ -1,5 +1,12 @@ # JayuCloud 当前任务进度 +## 2026-07-23 生产 NGINX 接入 minio.yunail.art + +- 已完成:确认 `api.yunail.art` 对应 `8.137.175.179`,网页和对象存储公网入口对应 `8.137.35.61`。 +- 已完成:生产 NGINX 新增 `minio.yunail.art` 的 HTTP/HTTPS 反代到 `wcy111.top:9000`,并签发独立证书。 +- 验证:HTTP/HTTPS 根路径返回 `403`,`/minio/health/live` 返回 `200`,证书 SAN 命中 `minio.yunail.art`。 +- 下一步:整理本次文档修正并提交中文 git commit。 + ## 当前任务 店务小程序店铺设置展示与按需编辑改造。