mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
feat: add declarative status page
This commit is contained in:
parent
f3ba2a1c8b
commit
718128596f
10 changed files with 101 additions and 40 deletions
|
@ -123,4 +123,24 @@
|
|||
VfXtULncAiEA2gmqdr+ugFz5tvPdKwanroTiMTUMhhCRYVlQlyTApyQ=
|
||||
-----END CERTIFICATE-----''
|
||||
];
|
||||
|
||||
machine.meta.probes = {
|
||||
status_pages."public" = {
|
||||
title = "Public Services";
|
||||
description = "State of my public infrastructure";
|
||||
showTags = false;
|
||||
publicGroupList =
|
||||
lib.optionals ((builtins.length (lib.attrNames config.machine.meta.probes.monitors)) > 0)
|
||||
[
|
||||
{
|
||||
name = config.networking.hostName;
|
||||
weight = 1;
|
||||
monitorList = builtins.filter (e: (lib.hasInfix ".luj.fr" e) || !(lib.hasInfix ".luj" e)) (
|
||||
lib.attrNames config.machine.meta.probes.monitors
|
||||
);
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue