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;
};
"/api/live/ws" = {
proxy = {
enable = true;
websocket.enable = true;
};
};
};
in {
grafana = {

View file

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