chore: don't buffer proxy requests to immich

This commit is contained in:
oddlama 2024-10-17 15:49:22 +02:00
parent 3d9a041f0c
commit 9675fd6d70
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -69,11 +69,7 @@
}; };
url = "http://${ipImmichMachineLearning}:3003"; url = "http://${ipImmichMachineLearning}:3003";
}; };
map = { map.enabled = true;
enabled = true;
darkStyle = "";
lightStyle = "";
};
newVersionCheck.enabled = true; newVersionCheck.enabled = true;
oauth = rec { oauth = rec {
enabled = true; enabled = true;
@ -212,7 +208,12 @@ in {
proxyWebsockets = true; 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;
''; '';
}; };
}; };
@ -237,9 +238,16 @@ in {
locations."/" = { locations."/" = {
proxyPass = "http://immich"; proxyPass = "http://immich";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = ''
'';
}; };
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.cidrv4};
allow ${globals.net.home-lan.cidrv6}; allow ${globals.net.home-lan.cidrv6};
deny all; deny all;