Fixed issue with cert renew

This commit is contained in:
2026-02-25 22:59:04 -05:00
parent bcc777ccdf
commit 59bba8273a
2 changed files with 4 additions and 4 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ module.exports = {
},
service:{
hostScheduler:{
enabled: false,
enabled: true,
initial: 5000,
interval: 86400000,
}
},
};
+1 -3
View File
@@ -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)