diff --git a/deploy/public/README.md b/deploy/public/README.md index 863132b..147d678 100644 --- a/deploy/public/README.md +++ b/deploy/public/README.md @@ -70,7 +70,7 @@ kubectl -n item-atlas-public logs deployment/atlas-public-frpc --tail=20 公网 API 使用独立的 Certbot HTTP-01 证书。首次接入先配置 HTTP 站点,让挑战路径使用 Nginx 配置挂载目录的 `.acme-api`。已有 HTTPS 站点时可先保留原证书。申请成功后将 `install-api-certificate.sh` 安装为 `/opt/item-atlas-api-cert/install-certificate.sh` 并运行,再切换 `nginx.conf.template` 所示的专用证书路径。检查配置、重载并启用 `item-atlas-api-cert-renew.timer`。 ```sh -certbot renew --cert-name api-atlas.tutudog.com --dry-run +certbot renew --cert-name api-atlas.tutudog.com --dry-run --no-random-sleep-on-renew systemctl list-timers item-atlas-api-cert-renew.timer ``` @@ -106,14 +106,14 @@ curl -fsS https://pc-atlas.tutudog.com/floor-plan `m-atlas.tutudog.com` 通过 `jianwu-public-h5` STCP 服务移动网页,复用原网关 STCP 提供同源 `/api/`。H5 与 PC 使用相同的静态站点 chart,镜像、Secret、FRP 客户端和 Helm release 各自独立。 1. 按 [H5 构建说明](../../apps/h5/README.md#构建镜像) 生成并加载 ARM64 镜像。渲染 `h5-frpc.toml.template`,用独立 STCP 密钥创建 `atlas-h5-frpc`。 -2. 在入口云机渲染 `h5-visitor.toml.template`,放在 `/opt/item-atlas-h5/frpc.toml`。安装 `item-atlas-h5-frpc.service`,visitor 仅监听 Nginx 私有网桥的 18793 端口。 +2. 在入口云机渲染 `h5-visitor.toml.template`,放在 `/opt/item-atlas-h5/h5-visitor.toml`。安装 `item-atlas-h5-frpc.service`,visitor 仅监听 Nginx 私有网桥的 18793 端口。 3. 渲染 `h5-nginx.conf.template`。首次签发时,先加载带挑战路径的 HTTP 站点和 `.acme-h5` webroot,再设置 A 记录和签发独立证书。将 `install-h5-certificate.sh` 安装为 `/opt/item-atlas-h5/install-certificate.sh`,运行一次后启用 HTTPS 站点和 `item-atlas-h5-cert-renew.timer`。每次改 Nginx 后先运行 `nginx -t`,通过再重载。 ```sh helm upgrade --install item-atlas-h5 deploy/helm/item-atlas-pc -n item-atlas-public \ -f deploy/public/h5-values.yaml --set-string image="$ATLAS_H5_IMAGE" \ --atomic --wait --timeout 3m -certbot renew --cert-name m-atlas.tutudog.com --dry-run +certbot renew --cert-name m-atlas.tutudog.com --dry-run --no-random-sleep-on-renew curl -fsS https://m-atlas.tutudog.com/healthz ```