This commit is contained in:
张威33321
2026-09-09 15:04:54 +08:00
parent fb87be680d
commit a9ec40a289
22 changed files with 303 additions and 352 deletions

10
acme/crontab.example Normal file
View File

@@ -0,0 +1,10 @@
# acme.sh 安装时会自动写入一条 cron每天执行 ~/.acme.sh/acme.sh --cron
# 续签成功后自动执行 --reloadcmd所以续签本身不需要再配 cron。
#
# 这里只需要一个"有效期检查"作为兜底告警:
# 自动续签可能静默失败,剩余天数低于 20 天时脚本以非 0 退出。
0 8 * * * bash /home/awei/workspace/common-server-public/acme/check-cert.sh >> /var/log/acme-check.log 2>&1
# 如需强制每天显式跑一次续签(一般不必),可加:
# 0 3 * * * bash /home/awei/workspace/common-server-public/acme/renew.sh >> /var/log/acme-renew.log 2>&1