fix(jellyfin): Proxy websockets

- This fixes Jellyfin's SyncPlay feature.
- This config is actually pasted from their setup guide.  Not sure how I
  missed it.
This commit is contained in:
Madeleine Sydney
2025-02-23 19:07:21 -07:00
parent c738bed3d8
commit c8ba339b4b
2 changed files with 41 additions and 11 deletions

View File

@@ -136,12 +136,12 @@ in {
forceSSL = true;
enableACME = true;
extraConfig = ''
set $upstream http://127.0.0.1:${builtins.toString cfg.httpPort};
'';
set $upstream http://127.0.0.1:${builtins.toString cfg.httpPort};
'';
locations."/".extraConfig = ''
include ${./authelia/proxy.conf};
proxy_pass $upstream;
'';
include ${./authelia/proxy.conf};
proxy_pass $upstream;
'';
locations."/api/verify".proxyPass = "$upstream";
locations."/api/authz".proxyPass = "$upstream";
};