dx: only allow cleanup in production

This commit is contained in:
Andras Bacsai 2022-02-15 17:46:37 +01:00
parent 25abfaadb9
commit b04d75ab08

View File

@ -87,7 +87,7 @@ const cron = async () => {
await queue.proxy.add('proxy', {}, { repeat: { every: 10000 } });
// await queue.ssl.add('ssl', {}, { repeat: { every: 10000 } });
await queue.cleanup.add('cleanup', {}, { repeat: { every: 3600000 } });
if (!dev) await queue.cleanup.add('cleanup', {}, { repeat: { every: 3600000 } });
await queue.sslRenew.add('sslRenew', {}, { repeat: { every: 1800000 } });
const events = {