From ef1d4d1942c0d8565019d2e13e3adbe380bf51d3 Mon Sep 17 00:00:00 2001 From: "n72595987@gmail.com" Date: Sun, 30 Nov 2025 11:06:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E8=AE=BF=E9=97=AE=E5=9C=B0=E5=9D=80=E4=B8=BA?= =?UTF-8?q?=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 IP:端口形式的地址替换为域名: - http://154.30.6.21:8123 → https://martial-api.johnsion.club - http://154.30.6.21:8080 → https://martial-ci.johnsion.club - http://154.30.6.21 → https://martial.johnsion.club - http://localhost:8123/doc.html → https://martial-doc.johnsion.club 更新的文件: - docs/README.md: 新人入门路径增加域名说明 - docs/CI-CD部署总结.md: 所有访问地址替换为域名,标记域名配置已完成 本地开发相关的 localhost 配置保持不变。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/CI-CD部署总结.md | 34 ++++++++++++++++------------------ docs/README.md | 2 +- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/docs/CI-CD部署总结.md b/docs/CI-CD部署总结.md index d783597..7a0486c 100644 --- a/docs/CI-CD部署总结.md +++ b/docs/CI-CD部署总结.md @@ -4,8 +4,8 @@ ### ✅ 已完成的工作 -#### 1. Drone CI/CD 服务器部署(154.30.6.21) -- **Drone Server**: http://154.30.6.21:8080 ✅ 运行中 +#### 1. Drone CI/CD 服务器部署 +- **Drone Server**: https://martial-ci.johnsion.club ✅ 运行中 - **Drone Runner**: ✅ 已连接并轮询任务 - **管理员账号**: JohnSion ✅ 已创建 - **RPC Secret**: 55db397727eb7def59f3f588c0b503e0 ✅ 已配置 @@ -71,7 +71,7 @@ git push origin main ### 步骤2:在 Drone UI 中激活仓库 ⚠️ 需要你操作 -1. 访问 http://154.30.6.21:8080 +1. 访问 https://martial-ci.johnsion.club 2. 使用 Gitea 账号登录(JohnSion) 3. 授权 Drone 访问你的仓库 4. 在仓库列表中点击 **ACTIVATE**: @@ -113,7 +113,7 @@ Drone CI 检测到代码变更 ↓ 5. 拉取最新镜像并重启容器 ↓ -6. 健康检查 (http://154.30.6.21:8123/actuator/health) +6. 健康检查 (https://martial-api.johnsion.club/actuator/health) ↓ ✅ 部署成功 ``` @@ -134,7 +134,7 @@ Drone CI 检测到代码变更 ↓ 5. 拉取最新镜像并重启容器 ↓ -6. 健康检查 (http://154.30.6.21/) +6. 健康检查 (https://martial.johnsion.club) ↓ ✅ 部署成功 ``` @@ -144,12 +144,12 @@ Drone CI 检测到代码变更 ## 🌐 访问地址 ### 部署后的应用 -- **前端**: http://154.30.6.21 -- **后端 API**: http://154.30.6.21:8123 -- **API 文档**: http://154.30.6.21:8123/doc.html +- **前端**: https://martial.johnsion.club +- **后端 API**: https://martial-api.johnsion.club +- **API 文档**: https://martial-doc.johnsion.club ### CI/CD 管理 -- **Drone UI**: http://154.30.6.21:8080 +- **Drone UI**: https://martial-ci.johnsion.club --- @@ -257,16 +257,13 @@ JAVA_OPTS: "-Xms512m -Xmx1024m" 1. ✅ **完成代码推送**(见上方步骤1) 2. ✅ **激活 Drone 仓库**(见上方步骤2) -3. ⭐ **配置域名**(可选) - - 前端: martial.waypeak.work → 154.30.6.21:80 - - 后端: api.martial.waypeak.work → 154.30.6.21:8123 - - CI/CD: drone.waypeak.work → 154.30.6.21:8080 +3. ✅ **配置域名**(已完成) + - 前端: https://martial.johnsion.club + - 后端: https://martial-api.johnsion.club + - API 文档: https://martial-doc.johnsion.club + - CI/CD: https://martial-ci.johnsion.club -4. ⭐ **配置 HTTPS**(可选) - - 使用 Let's Encrypt 免费证书 - - 在 Nginx 中配置 SSL - -5. ⭐ **配置构建通知**(可选) +4. ⭐ **配置构建通知**(可选) - 邮件通知 - 钉钉/企业微信通知 - Telegram 通知 @@ -275,4 +272,5 @@ JAVA_OPTS: "-Xms512m -Xmx1024m" 生成时间:2025-11-29 部署服务器:154.30.6.21 +域名:*.johnsion.club 管理员:JohnSion diff --git a/docs/README.md b/docs/README.md index 0241b45..7fe0ae1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -95,7 +95,7 @@ ### 第一天:环境准备 1. 阅读 [CLAUDE.md](../CLAUDE.md) 了解项目概况 2. 配置开发环境(JDK、Maven、MySQL、Redis) -3. 启动项目,访问 http://localhost:8123/doc.html +3. 启动项目,访问 https://martial-doc.johnsion.club(生产环境)或 http://localhost:8123/doc.html(本地开发) ### 第二天:理解架构 1. 阅读 [前后端架构说明.md](./前后端架构说明.md) 了解完整系统