grafana: Properly proxy websocket connections

Fixes #115
This commit is contained in:
Tristan Daniël Maat 2024-07-03 02:56:23 +02:00
parent 306b69f6b5
commit d426e783cd
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -42,6 +42,12 @@ in
forceSSL = true;
useACMEHost = "tlater.net";
enableHSTS = true;
locations."/".proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
locations = {
"/".proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
"/api/live" = {
proxyWebsockets = true;
proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
};
};
};
}