记录网页端证书和独立域名配置

This commit is contained in:
2026-07-09 15:19:19 +08:00
parent 4c3c910164
commit f19a609462
4 changed files with 30 additions and 4 deletions
+9
View File
@@ -87,3 +87,12 @@
- 影响范围:仅影响 Web/Nginx 静态站点和网关反向代理路由;不修改后端 JAR、数据库、Nacos 配置和小程序。
- 验证方式:`nginx -t` 通过并 reload 后保持 `nginx.service active`;公网 HTTP `/`、`/jy-salon-front/`、`/health/check` 均 301 到 HTTPS;忽略过期证书校验时,HTTPS `/` 返回设计师端入口,`/jy-salon-front/` 返回店务端入口,`/health/check` 返回 Jayu Cloud gateway JSON。
- 剩余问题:`yunail.art` 证书已过期,普通浏览器 HTTPS 访问仍会被证书校验阻断;`certbot renew --cert-name yunail.art --no-random-sleep-on-renew` 因服务器到 Let's Encrypt ACME 出站 TLS 握手失败未完成续期。
## 2026-07-09 DNS-01 证书签发与网页端按域名拆分
- 变更原因:用户确认生产域名规划为 `yunail.art` 和 `www.yunail.art` 给设计师端,`salon.yunail.art` 给店务端;原证书已过期且不覆盖店务独立域名。
- 证书处理:通过 DNS-01 手动 TXT 验证签发新的 Let's Encrypt 证书,SAN 覆盖 `yunail.art`、`www.yunail.art`、`salon.yunail.art`,有效期为 2026-07-09 至 2026-10-07;安装前已备份旧证书和私钥。
- Nginx 处理:拆分 443 server block,`yunail.art`/`www.yunail.art` 指向 `/opt/jy-artist-frontend/current`,`salon.yunail.art` 指向 `/opt/jy-artist-frontend/current/jy-salon-front`;80 端口统一包含三个域名并跳转 HTTPS。
- 影响范围:仅影响 Web/Nginx 证书、静态站点按域名分发和 HTTPS 入口;不修改后端 JAR、数据库、Nacos 配置和小程序。
- 验证方式:`nginx -t` 通过并 reload 后保持 `nginx.service active`;公网 HTTPS 正常校验下 `https://yunail.art/` 和 `https://www.yunail.art/` 返回设计师端入口,`https://salon.yunail.art/` 返回店务端入口,`https://salon.yunail.art/health/check` 返回 Jayu Cloud gateway JSON。
- 后续事项:本次为手动 DNS-01 签发,后续续期前需保留或重新添加 `_acme-challenge` TXT 记录,或补齐阿里云 DNS API 凭据改为自动 DNS-01。