From 530c2f68ea68f3c70ea6726f286e02d3396ad2eb Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 23 May 2024 10:25:04 -0700 Subject: [PATCH] Move client_max_body_size out of 'location' clause --- immich-ml-container.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/immich-ml-container.nix b/immich-ml-container.nix index d361261..2503295 100644 --- a/immich-ml-container.nix +++ b/immich-ml-container.nix @@ -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;