From 7fad180d174a9c189ab8d9cee89b24efe71c3e7e Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Fri, 13 Dec 2024 21:27:45 +0100 Subject: [PATCH] feat(luj.fr): add monitor --- machines/gustave/nsd.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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