diff --git a/homelab/gatus/default.nix b/homelab/gatus/default.nix new file mode 100644 index 0000000..bb5bd92 --- /dev/null +++ b/homelab/gatus/default.nix @@ -0,0 +1,64 @@ +{ config, pkgs, lib, ... }: + +{ + services.gatus = { + enable = true; + openFirewall = true; + settings = { + web.port = 61208; + endpoints = [ + { + name = "Personal Site"; + url = "https://ahoneybun.net"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + "[RESPONSE_TIME] < 300" + ]; + } + { + name = "Jellyfin"; + url = "https://videos.ahoneybun.net/health"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + "[BODY] == Healthy" + "[RESPONSE_TIME] < 300" + ]; + } + { + name = "Navidrome"; + url = "https://music.ahoneybun.net"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + { + name = "Forgejo"; + url = "https://git.ahoneybun.net/"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + { + name = "PhotoPrism"; + url = "https://photos.ahoneybun.net"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + { + name = "Audiobookself"; + url = "https://audiobookshelf.ahoneybun.net/"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + ]; + }; + }; +} \ No newline at end of file