deploy(M00-E): 补充Certbot证书检查

This commit is contained in:
Codex
2026-06-15 16:42:42 +08:00
parent d9d51e9d67
commit 4cb3ab6529
19 changed files with 158 additions and 24 deletions
@@ -13,6 +13,7 @@
- 生成 `scripts/dev/windows/push-module.ps1``check-gitea-ssh.ps1`,串联模块检查、提交、推送和远端校验。
- 生成 `scripts/setup/*.sh` 和新版 `setup.sh` 菜单,覆盖 `/opt/apps` 目录、仓库状态、dry-run 发布清单、备份 manifest、恢复/回滚提示和诊断。
- 继续补强 M00-E,新增固定 API 域名 Nginx 模板、Ubuntu 菜单第 4 项域名/HTTPS 检查和 Windows 域名检查脚本。
- 继续补强 TLS-001,新增 Certbot 状态检查、证书签发/续期命令说明和 WSL 域名检查 WARN 记录。
## 起始状态
@@ -32,7 +33,7 @@
## 部署影响
有。新增并升级 `setup.sh``scripts/setup/*.sh` 菜单式部署骨架,补充 `api.txyundm.cn` Nginx 模板域名/HTTPS 检查,但未执行生产部署。
有。新增并升级 `setup.sh``scripts/setup/*.sh` 菜单式部署骨架,补充 `api.txyundm.cn` Nginx 模板域名/HTTPS/Certbot 检查和证书命令说明,但未执行生产部署。
## 测试记录
@@ -44,6 +45,8 @@
- PowerShell 语法检查:`push-module.ps1``check-gitea-ssh.ps1` 均已通过 Parser 检查。
- 部署脚本:WSL 已执行 `bash -n setup.sh scripts/setup/*.sh``setup.sh --preflight``setup.sh --status``setup.sh --diagnose`;输出 PASS/WARN,未执行生产写入。
- 域名/HTTPS:新增菜单检查和 Windows 检查脚本;WSL `setup.sh --https` 显示 `api.txyundm.cn` 可解析到 `101.42.38.246`,但线上证书主题为 `CN=git.txyundm.cn``/health` 不可达,生产 DNS/证书/健康接口仍不得标记通过。
- Certbot:新增 `scripts/setup/certbot.sh``deploy/certbot/api.txyundm.cn.commands.md`;生产签发、续期 dry-run 和 `certbot.timer` 尚未执行。
- WSL 域名脚本:`scripts/dev/wsl/check-api-domain.sh` 已改为输出 PASS/WARN,不因生产健康接口暂未上线而中断整体验证。
- WSL 检查:已执行 `check-env.sh``check-workspace.sh``verify-linux.sh``prepare-test-copy.sh``cleanup-test-copy.sh`;临时副本创建和清理通过。完整 Linux 构建待正式后端/后台项目生成后执行。
- Git fetch/push:首次多次失败后,`git push origin main` 已成功;随后 `git fetch origin main` 校验 `HEAD == origin/main` 通过。