From 7bcc75c05992f52115829f3350e4af9538d80ebf Mon Sep 17 00:00:00 2001 From: arcnmx Date: Mon, 24 Jun 2024 15:38:35 -0700 Subject: [PATCH] fix(access): missing websocket proxy locations --- nixos/access/grafana.nix | 6 ++++++ nixos/access/plex.nix | 16 +++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/nixos/access/grafana.nix b/nixos/access/grafana.nix index 1d64c0b3..0a4a00bd 100644 --- a/nixos/access/grafana.nix +++ b/nixos/access/grafana.nix @@ -29,6 +29,12 @@ in { "/" = { proxy.enable = true; }; + "/api/live/ws" = { + proxy = { + enable = true; + websocket.enable = true; + }; + }; }; in { grafana = { diff --git a/nixos/access/plex.nix b/nixos/access/plex.nix index 3ad8f2a2..19d87bcf 100644 --- a/nixos/access/plex.nix +++ b/nixos/access/plex.nix @@ -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";