mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +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
|
@ -68,4 +68,35 @@ in
|
|||
config.machine.meta.ips.public.ipv6
|
||||
];
|
||||
|
||||
machine.meta.probes.monitors."s3.luj.fr - IPv4".accepted_statuscodes = [ "403" ];
|
||||
machine.meta.probes.monitors."s3.luj.fr - IPv6".accepted_statuscodes = [ "403" ];
|
||||
|
||||
machine.meta.probes.monitors."cdn.luj.fr - IPv4".accepted_statuscodes = [ "404" ];
|
||||
machine.meta.probes.monitors."cdn.luj.fr - IPv6".accepted_statuscodes = [ "404" ];
|
||||
|
||||
machine.meta.probes.monitors = {
|
||||
"luj.fr - IPv4" = {
|
||||
url = "https://${config.machine.meta.ips.public.ipv4}";
|
||||
type = "http";
|
||||
accepted_statuscodes = [ "200-299" ];
|
||||
notificationIDList = [ 1 ];
|
||||
headers = ''
|
||||
{
|
||||
"Host": "luj.fr"
|
||||
}
|
||||
'';
|
||||
};
|
||||
"luj.fr - IPv6" = {
|
||||
url = "https://[${config.machine.meta.ips.public.ipv6}]";
|
||||
type = "http";
|
||||
accepted_statuscodes = [ "200-299" ];
|
||||
notificationIDList = [ 1 ];
|
||||
headers = ''
|
||||
{
|
||||
"Host": "luj.fr"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue