mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 21:56:12 +08:00 
			
		
		
		
	Enable status page certificate expiry badge for all HTTP(s) monitors (#3649)
This commit is contained in:
		@@ -53,7 +53,7 @@ class Monitor extends BeanModel {
 | 
				
			|||||||
            obj.tags = await this.getTags();
 | 
					            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);
 | 
					            const { certExpiryDaysRemaining, validCert } = await this.getCertExpiry(this.id);
 | 
				
			||||||
            obj.certExpiryDaysRemaining = certExpiryDaysRemaining;
 | 
					            obj.certExpiryDaysRemaining = certExpiryDaysRemaining;
 | 
				
			||||||
            obj.validCert = validCert;
 | 
					            obj.validCert = validCert;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user