Make certificate renewal a task

This commit is contained in:
Girish Ramakrishnan
2018-12-10 20:20:53 -08:00
parent a76731a991
commit d2f4b68c9f
9 changed files with 35 additions and 33 deletions

View File

@@ -186,7 +186,7 @@ function recreateJobs(tz) {
if (gJobs.certificateRenew) gJobs.certificateRenew.stop();
gJobs.certificateRenew = new CronJob({
cronTime: '00 00 */12 * * *', // every 12 hours
onTick: reverseProxy.renewAll.bind(null, AUDIT_SOURCE, NOOP_CALLBACK),
onTick: cloudron.renewCerts.bind(null, {}, AUDIT_SOURCE, NOOP_CALLBACK),
start: true,
timeZone: tz
});