From 26d1ddfaee113b4be517cc7f3b369cdff74b2544 Mon Sep 17 00:00:00 2001
From: clerie <git@clerie.de>
Date: Thu, 6 Mar 2025 18:40:43 +0100
Subject: [PATCH] hosts/monitoring-3: Enable websockets with Grafana

---
 hosts/monitoring-3/grafana.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hosts/monitoring-3/grafana.nix b/hosts/monitoring-3/grafana.nix
index 8637c80..b7e88b2 100644
--- a/hosts/monitoring-3/grafana.nix
+++ b/hosts/monitoring-3/grafana.nix
@@ -38,6 +38,10 @@
         enableACME = true;
         forceSSL   = true;
         locations."/".proxyPass = "http://[::1]:3001/";
+        locations."= /api/live/ws" = {
+          proxyPass = "http://[::1]:3001";
+          proxyWebsockets = true;
+        };
       };
     };
   };