feat(server/grafana): add proxy websocket support for live api
This commit is contained in:
parent
87c196e499
commit
127cc02ecc
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue