diff --git a/modules/prometheus/default.nix b/modules/prometheus/default.nix index 1cad3a37..a402f35d 100644 --- a/modules/prometheus/default.nix +++ b/modules/prometheus/default.nix @@ -12,6 +12,15 @@ owner = "prometheus"; }; + services.caddy.virtualHosts."prometheus.${config.pub-solar-os.networking.domain}" = { + logFormat = lib.mkForce '' + output discard + ''; + extraConfig = '' + reverse_proxy :${toString config.services.prometheus.alertmanager.port} + ''; + }; + services.prometheus = { enable = true; port = 9001;