mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 07:35:24 +00:00
feat: unify alerts into one plugin, channels, rules and inbox
This commit is contained in:
1 parent
fbe736bc20
commit
7c02daccf4
129 files changed
+20957
-2687
No files matched your search
@@ -134,10 +134,21 @@ export function createAcmeRunner(
|
||||
await runner.issue();
|
||||
return true;
|
||||
} catch (error) {
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
ctx.log.error(
|
||||
"Certificate renewal failed",
|
||||
error instanceof Error ? error : new Error(String(error)),
|
||||
error instanceof Error ? error : new Error(message),
|
||||
);
|
||||
await ctx.notify
|
||||
.send({
|
||||
title: `Certificate renewal failed for ${settings.domain}`,
|
||||
body: message,
|
||||
severity: "critical",
|
||||
category: "acme-ssl.renewal_failed",
|
||||
audience: "admins",
|
||||
dedupeKey: `acme-ssl.renewal_failed:${settings.domain}`,
|
||||
})
|
||||
.catch(() => {});
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user