Import path fix
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const crypto = require("crypto");
|
||||
|
||||
const conf = require('@simpleworkjs/conf');
|
||||
const Table = require('../utils/redis_model');
|
||||
const Table = require('.');
|
||||
const ModelPs = require('../utils/model_pubsub');
|
||||
|
||||
const tldExtract = require('tld-extract').parse_host;
|
||||
|
||||
@@ -230,20 +230,24 @@ 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();
|
||||
}
|
||||
}catch(error){
|
||||
console.error('checkWildcardForRenew instance', this.host, error)
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
static async checkWildcardForRenew(){
|
||||
try{
|
||||
console.log('checkWildcardForRenew here', this)
|
||||
for(let host of await this.listDetail()){
|
||||
host.createWildcardCert();
|
||||
}
|
||||
}catch(error){
|
||||
console.error('checkWildcardForRenew', error)
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
'use strict';
|
||||
const conf = require('@simpleworkjs/conf');
|
||||
const {setUpTable} = require('model-redis');
|
||||
|
||||
const Table = setUpTable(conf.redis);
|
||||
|
||||
const Table = require('../utils/redis_model');
|
||||
module.exports = Table;
|
||||
|
||||
require('./dns_provider');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const Table = require('../utils/redis_model');
|
||||
const Table = require('.');
|
||||
const bcrypt = require('bcrypt');
|
||||
const saltRounds = 10;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user