From 90d0e8ccdecf40eef6b4204cd18524442be0bb19 Mon Sep 17 00:00:00 2001 From: "Marvin A. Ruder" Date: Sat, 23 Sep 2023 21:18:18 +0200 Subject: [PATCH] Enable status page certificate expiry badge for all HTTP(s) monitors (#3649) --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 6a456acf..c83ece49 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -53,7 +53,7 @@ class Monitor extends BeanModel { obj.tags = await this.getTags(); } - if (certExpiry && this.type === "http" && this.getURLProtocol() === "https:") { + if (certExpiry && (this.type === "http" || this.type === "keyword" || this.type === "json-query") && this.getURLProtocol() === "https:") { const { certExpiryDaysRemaining, validCert } = await this.getCertExpiry(this.id); obj.certExpiryDaysRemaining = certExpiryDaysRemaining; obj.validCert = validCert;