From 3e28358b89076f4c909f181117325804886a0262 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 25 Jan 2025 00:06:04 +0000 Subject: [PATCH] add proxy header to grafana nginx --- hosts/common/optional/nixos-containers/reverse-proxy.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/common/optional/nixos-containers/reverse-proxy.nix b/hosts/common/optional/nixos-containers/reverse-proxy.nix index b2abf5c..bbb57d2 100644 --- a/hosts/common/optional/nixos-containers/reverse-proxy.nix +++ b/hosts/common/optional/nixos-containers/reverse-proxy.nix @@ -79,6 +79,9 @@ in { }; "grafana.lan" = { locations."/".proxyPass = "http://${metricsServer}:2342"; + extraConfig = '' + proxy_set_header Host grafana.lan; + ''; }; "metrics.lan" = { locations."/".proxyPass = "http://${metricsServer}:9001";