services/monitoring: allow WebSocket connections

This commit is contained in:
Max Headroom 2022-05-16 00:11:36 +02:00
parent 0cd40f0f47
commit 917aec5b3a

View file

@ -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;