From a1731f0c2ed6a222fb39ad65b74fffde2a4c34bf Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Thu, 27 Apr 2023 23:09:59 +0200 Subject: [PATCH] service/prometheus: update url --- modules/services/prometheus/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/services/prometheus/default.nix b/modules/services/prometheus/default.nix index e35c0ab..e296c2f 100644 --- a/modules/services/prometheus/default.nix +++ b/modules/services/prometheus/default.nix @@ -79,6 +79,7 @@ in config = lib.mkIf cfg.enable { services.prometheus = { enable = true; + webExternalUrl = "https://monitor.${domain}"; inherit (cfg) port; listenAddress = "127.0.0.1"; @@ -211,19 +212,20 @@ in description = "Prometheus encountered {{ $value }} template text expansion failures\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"; }; }; + my.services.nginx.virtualHosts = [ { - subdomain = "monitoring"; + subdomain = "monitor"; inherit (cfg) port; } ]; - webapps.apps.prometheus = { - dashboard = { + webapps.apps = { + prometheus.dashboard = { name = "Monitoring"; category = "infra"; icon = "heart-pulse"; - link = "https://monitoring.${domain}"; + link = "https://monitor.${domain}"; method = "get"; }; };