mob next [ci-skip] [ci skip] [skip ci]

lastFile:inventories/default.nix
This commit is contained in:
2026-06-18 18:27:54 +07:00
parent e9dfe64b1a
commit 921e8a86dc
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -382,9 +382,9 @@
name = "matrix";
webhook_configs = [
{
url = "http://localhost:3000/alerts?secret=$$KUROIRIS_SECRET";
# url = "http://localhost:3000/alerts?secret=$$KUROIRIS_SECRET";
url_file = "";
send_resolved = true;
}
];
}
+3
View File
@@ -9,10 +9,13 @@
files.envFile.secret = true;
files.matrix-alertmanager-token.secret = true;
files.matrix-alertmanager-secret.secret = true;
files.matrix-alertmanager-urlfile.secret = true;
script = ''
echo "" > $out/envFile
echo "" > $out/matrix-alertmanager-token
openssl rand -hex 32 > "$out"/matrix-alertmanager-secret
echo "http://localhost:3000/alerts?secret=$(cat $out/matrix-alertmanager-secret)" > $out/matrix-alertmanager-urlfile
'';
runtimeInputs = [
pkgs.openssl