Import path fix
This commit is contained in:
@@ -20,11 +20,11 @@ const {Host} = require('../models/host');
|
||||
|
||||
// Initial wildcard cert check 30 seconds after app starts
|
||||
// Delay allows the system to fully initialize before checking certs
|
||||
setTimeout(Host.checkWildcardForRenew, 30000);
|
||||
setTimeout(Host.checkWildcardForRenew.bind(Host), 30000);
|
||||
|
||||
// Check wildcard certs once every 24 hours
|
||||
// Ensures certificates are renewed well before expiration
|
||||
setInterval(Host.checkWildcardForRenew, 86400000);
|
||||
setInterval(Host.checkWildcardForRenew.bind(Host), 86400000);
|
||||
|
||||
console.log('Host scheduler service initialized');
|
||||
console.log('- Wildcard cert check: 30s after start, then every 24h');
|
||||
|
||||
Reference in New Issue
Block a user