mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
add certificate-notification job
This commit is contained in:
parent
d578300104
commit
957c292307
2 changed files with 18 additions and 1 deletions
|
@ -6,7 +6,11 @@ const jobs = [
|
||||||
{
|
{
|
||||||
name: "clear-old-data",
|
name: "clear-old-data",
|
||||||
interval: "at 03:14",
|
interval: "at 03:14",
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
name: "certificate-notification",
|
||||||
|
interval: "60 seconds", // TODO: Production should be larger
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const initBackgroundJobs = function (args) {
|
const initBackgroundJobs = function (args) {
|
||||||
|
|
13
server/jobs/certificate-notification.js
Normal file
13
server/jobs/certificate-notification.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
const { log, exit, connectDb } = require("./util-worker");
|
||||||
|
const { R } = require("redbean-node");
|
||||||
|
const { setSetting, setting } = require("../util-server");
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
await connectDb();
|
||||||
|
|
||||||
|
console.log("Checking Certificate Expiry Date");
|
||||||
|
|
||||||
|
// TODO: Query monitor_tls_info
|
||||||
|
|
||||||
|
exit();
|
||||||
|
})();
|
Loading…
Reference in a new issue