deploy(M00-E): 补充API域名HTTPS检查

This commit is contained in:
Codex
2026-06-15 16:34:36 +08:00
parent c51ba43fa9
commit f5445f16d7
19 changed files with 225 additions and 50 deletions
@@ -12,6 +12,7 @@
- 生成 `docs/reference-page-map.md``docs/db-schema-inventory.md``docs/reference-api-inventory.md` 作为可提交脱敏摘要。
- 生成 `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 域名检查脚本。
## 起始状态
@@ -31,7 +32,7 @@
## 部署影响
有。新增并升级 `setup.sh``scripts/setup/*.sh` 菜单式部署骨架,但未执行生产部署。
有。新增并升级 `setup.sh``scripts/setup/*.sh` 菜单式部署骨架,补充 `api.txyundm.cn` Nginx 模板和域名/HTTPS 检查,但未执行生产部署。
## 测试记录
@@ -42,6 +43,7 @@
- Windows 推送脚本:已新增,遇到 SSH 主机指纹问题时停止,不自动覆盖 `known_hosts`
- 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/证书/健康接口仍不得标记通过。
- 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` 通过。