Move client_max_body_size out of 'location' clause

This commit is contained in:
niten 2024-05-23 10:25:04 -07:00
parent 457d740e28
commit 530c2f68ea
1 changed files with 4 additions and 5 deletions

View File

@ -23,10 +23,7 @@ in {
description = "Path on which to store service state.";
};
immich-version = mkOption {
type = str;
description = "";
};
immich-version = mkOption { type = str; };
debug = mkEnableOption "Enable debugging logs.";
@ -52,10 +49,12 @@ in {
virtualHosts = genAttrs cfg.hostnames (hostname: {
enableACME = false;
forceSSL = false;
extraConfig = ''
client_max_body_size 500M;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:${toString cfg.port}";
extraConfig = ''
client_max_body_size 500M;
proxy_request_buffering off;
'';
recommendedProxySettings = true;