From 143059edc50facaf27c7959c2ca3796e45f8f07f Mon Sep 17 00:00:00 2001 From: Anish L Date: Tue, 14 Jun 2022 17:00:59 +1000 Subject: [PATCH] update monitoring so it works with recent grafana --- modules/backup.nix | 2 +- profiles/monitoring/default.nix | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/backup.nix b/modules/backup.nix index c5d462c7..8ab45fef 100644 --- a/modules/backup.nix +++ b/modules/backup.nix @@ -15,7 +15,7 @@ in type = types.str; default = { }; example = literalExample '' - shaarli + mossnet ''; description = '' name for the backup operator diff --git a/profiles/monitoring/default.nix b/profiles/monitoring/default.nix index 793ac393..58c352d1 100644 --- a/profiles/monitoring/default.nix +++ b/profiles/monitoring/default.nix @@ -6,12 +6,15 @@ port = 2342; addr = "127.0.0.1"; }; - + # nginx reverse proxy services.nginx.virtualHosts.${config.services.grafana.domain} = { locations."/" = { - proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; - proxyWebsockets = true; + proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; + proxyWebsockets = true; + extraConfig = '' + proxy_set_header Host ${config.services.grafana.domain} + ''; }; };