From 59bba8273af9a8af46cf3c57b1446e89a2ff9bed Mon Sep 17 00:00:00 2001 From: William Mantly Date: Wed, 25 Feb 2026 22:59:04 -0500 Subject: [PATCH] Fixed issue with cert renew --- nodejs/conf/development.js | 4 +++- nodejs/models/host.js | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nodejs/conf/development.js b/nodejs/conf/development.js index 024cde1..12c5167 100644 --- a/nodejs/conf/development.js +++ b/nodejs/conf/development.js @@ -17,7 +17,9 @@ module.exports = { }, service:{ hostScheduler:{ - enabled: false, + enabled: true, + initial: 5000, + interval: 86400000, } }, }; diff --git a/nodejs/models/host.js b/nodejs/models/host.js index a5788b8..0b98457 100755 --- a/nodejs/models/host.js +++ b/nodejs/models/host.js @@ -235,7 +235,6 @@ class Host extends Table{ async checkWildcardForRenew(){ try{ - console.log(`Checking ${this.host}`); if(this.is_wildcard && Date.now() > this.wildcard_expires - (30 * 24 * 60 * 60 * 1000)){ this.createWildcardCert(); } @@ -247,9 +246,8 @@ class Host extends Table{ static async checkWildcardForRenew(){ try{ - console.log('checkWildcardForRenew here', this) for(let host of await this.listDetail()){ - host.createWildcardCert(); + host.checkWildcardForRenew(); } }catch(error){ console.error('checkWildcardForRenew', error)