1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-03-11 14:49:28 +02:00

Update TLS expiration warning (#5659)

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Fred Nnaji 2025-03-07 22:49:38 +02:00 committed by GitHub
parent c7d7fdd632
commit 230832c382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1434,7 +1434,7 @@ class Monitor extends BeanModel {
for (let notification of notificationList) {
try {
log.debug("monitor", "Sending to " + notification.name);
await Notification.send(JSON.parse(notification.config), `[${this.name}][${this.url}] ${certType} certificate ${certCN} will be expired in ${daysRemaining} days`);
await Notification.send(JSON.parse(notification.config), `[${this.name}][${this.url}] ${certType} certificate ${certCN} will expire in ${daysRemaining} days`);
sent = true;
} catch (e) {
log.error("monitor", "Cannot send cert notification to " + notification.name);