mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1176] 支持外部通知自定义通知内容 #641
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#641
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 @leic4u on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1176
Is your feature request related to a problem? Please describe.
我有多台服务器均部署了 NginxUI,各自签署托管证书并通过 NginxUI 自动续期。目前通过 Telegram Bot 可以接收证书续期通知,但通知内容仅有
证书续期成功+签署域名两个信息,如果多台服务器使用了相同域名,无法判断是哪台服务器签署成功了,哪台服务器签署失败了。Describe the solution you'd like
期望可以支持自定义通知内容,并支持域名变量、续期时间变量、失效时间变量、下次续期时间变量,以及其他更多可提供配置的变量。
大概翻了下代码,好像不止证书续期会发出通知?
如果通知类型非常多,导致自定义配置功能很难搞的话,在证书续期这类通知的模板中加入更多信息也可以,比如:
Describe alternatives you've considered
暂无
Additional context
变量实现可以参考
github.com/jeessy2/ddns-go@68dd86f55c/config/webhook.go (L122C1-L131C2)@leic4u commented on GitHub (Jul 8, 2025):
不支持自定义的话,是否可以把通知内容丰富一下呢,现在这个有点太简单了,很多信息看不出来,还是得登录面板去看。