From 717cd5a21e8f1b1e75062263058ca2618610b03a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 17 Oct 2024 13:35:45 +0200 Subject: [PATCH] Keep host header for Grafana requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was breaking requests due to CSRF check. See: https://github.com/grafana/grafana/issues/45117#issuecomment-1033842787 Reviewed-by: Aleix Boné --- m/hut/nginx.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/m/hut/nginx.nix b/m/hut/nginx.nix index a606894..5a472e7 100644 --- a/m/hut/nginx.nix +++ b/m/hut/nginx.nix @@ -53,6 +53,7 @@ in location /grafana { proxy_pass http://127.0.0.1:2342; proxy_redirect http:// $scheme://; + proxy_set_header Host $host; # Websockets proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;