[GH-ISSUE #1176] 支持外部通知自定义通知内容 #641

Closed
opened 2026-02-26 12:08:59 +03:00 by kerem · 1 comment
Owner

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
期望可以支持自定义通知内容,并支持域名变量、续期时间变量、失效时间变量、下次续期时间变量,以及其他更多可提供配置的变量。

大概翻了下代码,好像不止证书续期会发出通知?
如果通知类型非常多,导致自定义配置功能很难搞的话,在证书续期这类通知的模板中加入更多信息也可以,比如:

XXX服务器(节点名称)证书续期成功
续期域名:*.abc.com, abc.com
续期时间:2025年6月25日 12:23:23
失效时间:2025年9月23日 12:23:23
下次续期时间:2025年7月15日 12:23:23

Describe alternatives you've considered
暂无

Additional context
变量实现可以参考 github.com/jeessy2/ddns-go@68dd86f55c/config/webhook.go (L122C1-L131C2)

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** 期望可以支持自定义通知内容,并支持域名变量、续期时间变量、失效时间变量、下次续期时间变量,以及其他更多可提供配置的变量。 大概翻了下代码,好像不止证书续期会发出通知? 如果通知类型非常多,导致自定义配置功能很难搞的话,在证书续期这类通知的模板中加入更多信息也可以,比如: ``` XXX服务器(节点名称)证书续期成功 续期域名:*.abc.com, abc.com 续期时间:2025年6月25日 12:23:23 失效时间:2025年9月23日 12:23:23 下次续期时间:2025年7月15日 12:23:23 ``` **Describe alternatives you've considered** 暂无 **Additional context** 变量实现可以参考 https://github.com/jeessy2/ddns-go/blob/68dd86f55c21699f9373e98ef8e5e71db58fd2b7/config/webhook.go#L122C1-L131C2
kerem 2026-02-26 12:08:59 +03:00
Author
Owner

@leic4u commented on GitHub (Jul 8, 2025):

不支持自定义的话,是否可以把通知内容丰富一下呢,现在这个有点太简单了,很多信息看不出来,还是得登录面板去看。

<!-- gh-comment-id:3048065054 --> @leic4u commented on GitHub (Jul 8, 2025): 不支持自定义的话,是否可以把通知内容丰富一下呢,现在这个有点太简单了,很多信息看不出来,还是得登录面板去看。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#641
No description provided.