🔧 fix(deploy): 证书方案从 certbot 迁移到 acme.sh
- 证书目录改为可配置 CERT_DIR(默认 /etc/nginx/ssl),适配 acme.sh --install-cert 安装位置 - nginx 模板与提示文案同步去 certbot 依赖,ACME http-01 验证路径保持 webroot 兼容
This commit is contained in:
1 parent
af9004adaf
commit
3768ec0a31
2 files changed
+35
-37
No files matched your search
+3
-1
@@ -32,8 +32,10 @@ SRC_DIR="/root/code/novel/fanqie-go"
|
||||
DOMAIN="fq.20010117.xyz"
|
||||
|
||||
# ---------- 证书 ----------
|
||||
# Certbot 申请证书的邮箱,用于接收过期提醒
|
||||
# acme.sh 申请证书的邮箱,用于账户注册与过期提醒
|
||||
CERT_EMAIL="you@example.com"
|
||||
# 证书安装目录(acme.sh --install-cert 目标,nginx 配置从此处读取)
|
||||
# CERT_DIR="/etc/nginx/ssl"
|
||||
|
||||
# ---------- 编译 ----------
|
||||
# BUILD_TARGET="./cmd/fanqie"
|
||||
|
||||
Reference in new issue
Block a user