From a5bcd237ad0c4cc5d81f30413eb849c618b6e4e4 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sat, 24 Feb 2024 09:13:36 +0100 Subject: [PATCH] Specify proper external url for prometheus --- hosts/nixos/lapetus/services/prometheus.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hosts/nixos/lapetus/services/prometheus.nix b/hosts/nixos/lapetus/services/prometheus.nix index 44d1b02..f284089 100644 --- a/hosts/nixos/lapetus/services/prometheus.nix +++ b/hosts/nixos/lapetus/services/prometheus.nix @@ -8,7 +8,7 @@ in services.prometheus = { enable = true; port = 8410; - webExternalUrl = host; + webExternalUrl = "https://${host}"; # {{{ Node exporter (system info) exporters = { @@ -30,9 +30,7 @@ in # }}} # {{{ Networking & storage services.nginx.virtualHosts.${host} = - config.satellite.proxy - config.services.prometheus.port - { proxyWebsockets = true; }; + config.satellite.proxy config.services.prometheus.port { }; environment.persistence."/persist/state".directories = [{ directory = "/var/lib/prometheus2";