杂务:整理文档并收口 YumiNail 修复
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# YumiNail 数据库配置索引
|
||||
|
||||
整理日期:2026-05-21
|
||||
|
||||
本文只记录数据库连接配置的来源和非敏感连接入口,密码、token 等敏感凭据不写入仓库。完整明文配置以 Nacos 中对应 `datasource.yaml` 为准。
|
||||
|
||||
## Nacos 配置位置
|
||||
|
||||
| 环境 | Nacos namespace | group | dataId | 说明 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| 生产 | `YumiNail` | `DEFAULT_GROUP` | `datasource.yaml` | 生产数据库连接配置 |
|
||||
| 开发 | `YumiNail-Dev` | `DEFAULT_GROUP` | `datasource.yaml` | 开发数据库连接配置 |
|
||||
|
||||
## 生产数据库入口
|
||||
|
||||
| 配置项 | 值 |
|
||||
| --- | --- |
|
||||
| JDBC URL | `jdbc:mysql://mysql01:3307/nailart?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&connectTimeout=5000&socketTimeout=10000` |
|
||||
| 数据库入口 | `mysql01:3307` |
|
||||
| 数据库名 | `nailart` |
|
||||
| 用户名 | `root` |
|
||||
| 密码 | 已在 Nacos 配置,仓库不落明文 |
|
||||
| 备注 | `mysql01:3307` 是统一数据库代理入口,后端为 MySQL 集群 |
|
||||
|
||||
## 开发数据库入口
|
||||
|
||||
| 配置项 | 值 |
|
||||
| --- | --- |
|
||||
| JDBC URL | `jdbc:mysql://192.168.5.15:3306/nailart?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true` |
|
||||
| 数据库入口 | `192.168.5.15:3306` |
|
||||
| 数据库名 | `nailart` |
|
||||
| 用户名 | `root` |
|
||||
| 密码 | 已在 Nacos 配置,仓库不落明文 |
|
||||
|
||||
## 连接池与监控
|
||||
|
||||
生产和开发当前都通过 Druid 连接池配置,核心参数以 Nacos `datasource.yaml` 为准。Druid 监控入口为 `/druid/*`,登录信息同样只在 Nacos 中维护。
|
||||
|
||||
## 读取记录
|
||||
|
||||
2026-05-21 已读取并核对以下配置:
|
||||
|
||||
| 环境 | 读取结果 |
|
||||
| --- | --- |
|
||||
| `YumiNail / DEFAULT_GROUP / datasource.yaml` | 成功 |
|
||||
| `YumiNail-Dev / DEFAULT_GROUP / datasource.yaml` | 成功 |
|
||||
@@ -0,0 +1,48 @@
|
||||
# YumiNail 生产服务器索引
|
||||
|
||||
整理日期:2026-05-21
|
||||
|
||||
本文只记录 YumiNail 生产环境前端入口、后端网关和 Core 服务的连接索引。密码、密钥、私钥不写入仓库;需要 SSH 时优先使用本机 `mcp__ssh_manager`,服务器配置位于本机 `C:\Users\21616\.codex\ssh-config.toml`。
|
||||
|
||||
## 使用说明
|
||||
|
||||
- 建议通过下表的 `MCP server key` 连接服务器。
|
||||
- 默认 SSH 用户为 `root`,默认工作目录为 `/opt`。
|
||||
- 如果 `mcp__ssh_manager.ssh_list_servers` 返回空列表,通常是 MCP 进程尚未重新加载 `ssh-config.toml`,重启 Codex/MCP 后再试。
|
||||
- MySQL、Nacos、Redis、RabbitMQ、MessageHub 等基础设施服务器不在本文展开,按需回到源配置查询。
|
||||
|
||||
## 前端入口 / NGINX 代理
|
||||
|
||||
| 角色 | MCP server key | 地址 | SSH 端口 | 用户 | 默认目录 | 用途 | 备注 |
|
||||
| --- | --- | --- | ---: | --- | --- | --- | --- |
|
||||
| 前端入口与后端代理 | `yuminail-frontend-nginx` | `8.137.35.61` | `22` | `root` | `/opt` | 阿里云服务器,承载 NGINX 前端入口和后端代理 | 后端请求链路:`NGINX -> Gateway` |
|
||||
|
||||
## 后端网关集群
|
||||
|
||||
| 角色 | MCP server key | 地址 | SSH 端口 | 用户 | 默认目录 | 用途 |
|
||||
| --- | --- | --- | ---: | --- | --- | --- |
|
||||
| Gateway 01 | `yuminail-gateway01` | `yuminail-gateway01` | `22` | `root` | `/opt` | YumiNail 网关服务 01 |
|
||||
| Gateway 02 | `yuminail-gateway02` | `yuminail-gateway02` | `22` | `root` | `/opt` | YumiNail 网关服务 02 |
|
||||
| Gateway 03 | `yuminail-gateway03` | `yuminail-gateway03` | `22` | `root` | `/opt` | YumiNail 网关服务 03 |
|
||||
|
||||
## 后端 Core 集群
|
||||
|
||||
| 角色 | MCP server key | 地址 | SSH 端口 | 用户 | 默认目录 | 用途 |
|
||||
| --- | --- | --- | ---: | --- | --- | --- |
|
||||
| Core 01 | `yuminail-core01` | `yuminail-core01` | `22` | `root` | `/opt` | YumiNail Core 服务 01 |
|
||||
| Core 02 | `yuminail-core02` | `yuminail-core02` | `22` | `root` | `/opt` | YumiNail Core 服务 02 |
|
||||
| Core 03 | `yuminail-core03` | `yuminail-core03` | `22` | `root` | `/opt` | YumiNail Core 服务 03 |
|
||||
|
||||
## 连通性核验记录
|
||||
|
||||
2026-05-21 已用 SSH-manager Node 后端做只读连通性核验,执行命令仅为 `hostname; whoami; pwd`。
|
||||
|
||||
| MCP server key | 连接状态 | 远端 hostname | whoami | pwd |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `yuminail-frontend-nginx` | 成功 | `iZljjdtzydohblZ` | `root` | `/opt` |
|
||||
| `yuminail-gateway01` | 成功 | `centos7` | `root` | `/opt` |
|
||||
| `yuminail-gateway02` | 成功 | `centos7` | `root` | `/opt` |
|
||||
| `yuminail-gateway03` | 成功 | `bogon` | `root` | `/opt` |
|
||||
| `yuminail-core01` | 成功 | `centos7` | `root` | `/opt` |
|
||||
| `yuminail-core02` | 成功 | `centos7` | `root` | `/opt` |
|
||||
| `yuminail-core03` | 成功 | `bogon` | `root` | `/opt` |
|
||||
Reference in New Issue
Block a user