diff --git a/machines/gustave/nsd.nix b/machines/gustave/nsd.nix index a541af7..f3ec84f 100644 --- a/machines/gustave/nsd.nix +++ b/machines/gustave/nsd.nix @@ -105,6 +105,29 @@ lib.mkMerge [ machine.meta.zones."luj.fr".AAAA = [ config.machine.meta.ips.public.ipv6 ]; 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" + } + ''; + }; + }; + } # DNS Records from all non local configurations are exported here