fix(access): missing websocket proxy locations

This commit is contained in:
arcnmx 2024-06-24 15:38:35 -07:00
parent 0b2ff5cd1e
commit 7bcc75c059
2 changed files with 15 additions and 7 deletions

View file

@ -29,6 +29,12 @@ in {
"/" = { "/" = {
proxy.enable = true; proxy.enable = true;
}; };
"/api/live/ws" = {
proxy = {
enable = true;
websocket.enable = true;
};
};
}; };
in { in {
grafana = { grafana = {

View file

@ -43,6 +43,13 @@ in {
X-Plex-Device-Vendor = "$http_x_plex_device_vendor"; X-Plex-Device-Vendor = "$http_x_plex_device_vendor";
X-Plex-Model = "$http_x_plex_model"; X-Plex-Model = "$http_x_plex_model";
}; };
websocketLocation = {
proxy = {
enable = true;
websocket.enable = true;
inherit headers;
};
};
locations = { locations = {
"/" = { "/" = {
proxy = { proxy = {
@ -50,13 +57,8 @@ in {
inherit headers; inherit headers;
}; };
}; };
"/websockets/" = { "/websockets/" = websocketLocation;
proxy = { "/:/websockets/" = websocketLocation;
enable = true;
websocket.enable = true;
inherit headers;
};
};
}; };
name.shortServer = mkDefault "plex"; name.shortServer = mkDefault "plex";
copyFromVhost = mkDefault "plex"; copyFromVhost = mkDefault "plex";