diff --git a/nix/modules/monitoring/default.nix b/nix/modules/monitoring/default.nix index dd0d4a6..85473c7 100644 --- a/nix/modules/monitoring/default.nix +++ b/nix/modules/monitoring/default.nix @@ -1,7 +1,6 @@ { lib, pkgs, nixpkgs-unstable, config, machines, ... }: let cfg = config.lab.monitoring; - gatusPort = 8080; in { imports = [ @@ -59,8 +58,6 @@ in package = pkgs.unstable.gatus; settings = { - web.port = gatusPort; - storage = { type = "sqlite"; path = "/srv/gatus/gatus.db"; @@ -96,7 +93,7 @@ in virtualHosts."${config.networking.fqdn}" = { locations = { "/" = { - proxyPass = "http://127.0.0.1:${toString gatusPort}"; + proxyPass = "http://127.0.0.1:${toString config.services.gatus.settings.web.port}"; recommendedProxySettings = true; };