feat(server/grafana): add proxy websocket support for live api

This commit is contained in:
Mohammad Rafiq 2025-06-13 06:36:01 +08:00
parent 87c196e499
commit 127cc02ecc
No known key found for this signature in database

View file

@ -17,6 +17,10 @@ in
source = cfg.url;
target = "http://${config.system.hostname}:${builtins.toString cfg.port}";
extraConfig.proxyWebsockets = true;
locations."/api/live/" = {
proxyPass = "http://${config.system.hostname}:${builtins.toString cfg.port}";
proxyWebsockets = true;
};
});
services.grafana = {
enable = true;