feat(web): landing 移除顶部下载按钮与 Web 新版本提示; 活性检查改用 /healthz
- 顶部英雄区下载按钮与下方下载区块重复, 删除该按钮; 保留下载区块(按钮+二维码) - Web 端访问的页面即部署版本, 不应有版本不一致提示: 移除 Landing 的 WebUpdateBanner - index.html 响应加 Cache-Control: no-cache, no-store 兜底: 避免浏览器/代理缓存旧 index 导致刷新后仍加载旧哈希资源, 与部署 dist 不一致 - 新增 GET /healthz 作为容器活性检查路径, Dockerfile HEALTHCHECK 从 /api/health 切换
This commit is contained in:
@@ -198,7 +198,8 @@ bash scripts/build-apk.sh debug # 或 release
|
||||
| `GET /api/ota/check/:seq` | 有新包 → 200 + manifest;无 → 204 |
|
||||
| `GET /api/ota/bundle/:file` | 下载 tar.gz 升级包 (流式) |
|
||||
| `GET /api/ota/manifest-web` | Web 简化版 manifest |
|
||||
| `GET /api/health` | 健康检查 |
|
||||
| `GET /healthz` | 容器活性检查 (Dockerfile HEALTHCHECK 使用) |
|
||||
| `GET /api/health` | 健康检查 (兼容旧引用) |
|
||||
|
||||
数据源: 环境变量 `OTA_PACKAGE_DIR`(默认 `ota-package/`)下的 `latest.json` + `wardrobe-ota.tar.gz`。
|
||||
`PORT` 默认 `3002`(与 iboard 的 3001 同机共存)。可选 `OTA_PUBLIC_BASE` 让客户端直连 R2 下载 bundle。
|
||||
|
||||
Reference in New Issue
Block a user