diff options
author | makefu <github@syntax-fehler.de> | 2023-06-03 15:46:40 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2023-06-03 15:46:52 +0200 |
commit | 7b78bf561010f60a7cfe8313f774f9a2c3ab4b3d (patch) | |
tree | cd66f0f9512b324a732567631bd1f883f1b3646c /krebs/2configs/shack/grafana.nix | |
parent | ac9006fac2947a8e4e6ecd5df0b8775b34859bd9 (diff) |
krebs puyak.r: fetch u300 power
Diffstat (limited to 'krebs/2configs/shack/grafana.nix')
-rw-r--r-- | krebs/2configs/shack/grafana.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/krebs/2configs/shack/grafana.nix b/krebs/2configs/shack/grafana.nix index adf0a4bc3..f42f1c4af 100644 --- a/krebs/2configs/shack/grafana.nix +++ b/krebs/2configs/shack/grafana.nix @@ -4,7 +4,18 @@ in { networking.firewall.allowedTCPPorts = [ port ]; # legacy services.nginx.virtualHosts."grafana.shack" = { - locations."/".proxyPass = "http://localhost:${toString port}"; + locations."/" = { + proxyPass = "http://localhost:${toString port}"; + extraConfig ='' + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + ''; + + }; }; services.grafana = { enable = true; |