grafana: Properly proxy websocket connections #119

Manually merged
tlater merged 1 commit from tlater/grafana-websockets into master 2024-07-03 02:02:04 +01:00
Showing only changes of commit d426e783cd - Show all commits

View file

@ -42,6 +42,12 @@ in
forceSSL = true; forceSSL = true;
useACMEHost = "tlater.net"; useACMEHost = "tlater.net";
enableHSTS = true; 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}";
};
};
}; };
} }