use default gatus port

This commit is contained in:
Pim Kunis 2024-03-09 10:29:29 +01:00
parent 01138760f4
commit 01d54f8c2e

View file

@ -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;
};