From 917aec5b3ac57a665ea28ded29a6bea81ab49102 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 16 May 2022 00:11:36 +0200 Subject: [PATCH] services/monitoring: allow WebSocket connections --- hosts/VEGAS/services/monitoring/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/VEGAS/services/monitoring/default.nix b/hosts/VEGAS/services/monitoring/default.nix index dedea69..56a56cf 100644 --- a/hosts/VEGAS/services/monitoring/default.nix +++ b/hosts/VEGAS/services/monitoring/default.nix @@ -80,7 +80,9 @@ in EnvironmentFile = config.age.secrets.grafana-secrets.path; }; - services.nginx.virtualHosts."monitoring.${domain}" = tools.nginx.vhosts.proxy "http://127.0.0.1:${portsStr.grafana}"; + services.nginx.virtualHosts."monitoring.${domain}" = lib.recursiveUpdate (tools.nginx.vhosts.proxy "http://127.0.0.1:${portsStr.grafana}") { + locations."/".proxyWebsockets = true; + }; services.prometheus = { enable = true;