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
|
@ -101,30 +101,8 @@ lib.mkMerge [
|
|||
networking.firewall.allowedUDPPorts = [ 53 ];
|
||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
||||
|
||||
machine.meta.zones."luj.fr".TXT = [ "homepage.luj.luj-static.page" ];
|
||||
|
||||
machine.meta.monitors = {
|
||||
"luj.fr - IPv4" = {
|
||||
url = "https://${config.machine.meta.ips.public.ipv4}";
|
||||
type = "http";
|
||||
accepted_statuscodes = [ "200-299" ];
|
||||
headers = ''
|
||||
{
|
||||
"Host": "luj.fr"
|
||||
}
|
||||
'';
|
||||
};
|
||||
"luj.fr - IPv6" = {
|
||||
url = "https://[${config.machine.meta.ips.public.ipv6}]";
|
||||
type = "http";
|
||||
accepted_statuscodes = [ "200-299" ];
|
||||
headers = ''
|
||||
{
|
||||
"Host": "luj.fr"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
# Page server disabled for now
|
||||
#machine.meta.zones."luj.fr".TXT = [ "homepage.luj.luj-static.page" ];
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue