mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-26 01:05:52 +03:00
[GH-ISSUE #878] 请问申请完证书后的动作可以配置吗? #465
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#465
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @easonjim on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/878
使用 acme.sh 命令申请完证书后会有重新的 shell 命令可以自定义的,比如上传到 nginx,以及更新 aliyun 的动作,请问 nginx-ui 证书管理里可以配置自定义 shell 吗?
@0xJacky commented on GitHub (Feb 20, 2025):
你好,出于安全考虑,不会支持自定义 shell 执行,但是上传至 aliyun 可以使用这个项目:https://github.com/0xJacky/cdn_cert
@easonjim commented on GitHub (Feb 20, 2025):
太棒了
@easonjim commented on GitHub (Feb 26, 2025):
@0xJacky 我用脚本完美解决了 alicdn 的变动更新,后续我在这里分享实现脚本
@easonjim commented on GitHub (Feb 27, 2025):
实现方式:
1、通过使用 inotify-tools 监控文件变化
2、通过 aliyuncli 提交证书并替换
安装 inotify-tools:
shell yum -y install inotify-tools安装 aliyuncli:
https://help.aliyun.com/zh/cli/install-cli-on-linux
执行脚本:
1、ssl_alicdn_xxx.domain.com.sh:
2、ssl_watchdog.sh
3、监控文件变化并执行: