From 2e37815edb050b0aa3d9b8e19fd3092960080fd9 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Wed, 21 May 2025 19:28:29 +0100 Subject: [PATCH] audiobookshelf: Use built-in NixOS setting for nginx websocket support --- services/audiobookshelf.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/services/audiobookshelf.nix b/services/audiobookshelf.nix index a9c34da..6019108 100644 --- a/services/audiobookshelf.nix +++ b/services/audiobookshelf.nix @@ -21,11 +21,7 @@ in enableACME = true; locations."/" = { proxyPass = "http://127.0.0.1:8234/"; - extraConfig = '' - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - ''; + proxyWebsockets = true; }; }; };