From 9675fd6d70329d25444ceb8a3029fb8950b25759 Mon Sep 17 00:00:00 2001 From: oddlama Date: Thu, 17 Oct 2024 15:49:22 +0200 Subject: [PATCH] chore: don't buffer proxy requests to immich --- hosts/sire/guests/immich.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/hosts/sire/guests/immich.nix b/hosts/sire/guests/immich.nix index 7825680..eb0d9b9 100644 --- a/hosts/sire/guests/immich.nix +++ b/hosts/sire/guests/immich.nix @@ -69,11 +69,7 @@ }; url = "http://${ipImmichMachineLearning}:3003"; }; - map = { - enabled = true; - darkStyle = ""; - lightStyle = ""; - }; + map.enabled = true; newVersionCheck.enabled = true; oauth = rec { enabled = true; @@ -212,7 +208,12 @@ in { proxyWebsockets = true; }; extraConfig = '' - client_max_body_size 10G; + client_max_body_size 50G; + proxy_buffering off; + proxy_request_buffering off; + proxy_read_timeout 600s; + proxy_send_timeout 600s; + send_timeout 600s; ''; }; }; @@ -237,9 +238,16 @@ in { locations."/" = { proxyPass = "http://immich"; proxyWebsockets = true; + extraConfig = '' + ''; }; extraConfig = '' - client_max_body_size 10G; + client_max_body_size 50G; + proxy_buffering off; + proxy_request_buffering off; + proxy_read_timeout 600s; + proxy_send_timeout 600s; + send_timeout 600s; allow ${globals.net.home-lan.cidrv4}; allow ${globals.net.home-lan.cidrv6}; deny all;