From 74ec8a9bd6230277088394cd124ca8c78ba15bd2 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 11 Oct 2025 23:59:35 -0500 Subject: [PATCH] 340 current 2025-10-11 23:47:35 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- modules/homelab/services/audiobookshelf/default.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 67820bd..8039e3a 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 339 current 2025-10-11 23:44:28 25.05.20251006.20c4598 6.12.50 * +# generation: 340 current 2025-10-11 23:47:35 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/services/audiobookshelf/default.nix b/modules/homelab/services/audiobookshelf/default.nix index 6c2f88b..764544f 100644 --- a/modules/homelab/services/audiobookshelf/default.nix +++ b/modules/homelab/services/audiobookshelf/default.nix @@ -82,6 +82,15 @@ in sslCertificateKey = sec."ssl_blakedheld_key".path; locations."/" = { proxyPass = "http://127.0.0.1:${toString cfg.port}"; + extraConfig = '' + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_http_version 1.1; + client_max_body_size 10240M; + ''; }; };