Move client_max_body_size out of 'location' clause
This commit is contained in:
parent
457d740e28
commit
530c2f68ea
|
@ -23,10 +23,7 @@ in {
|
||||||
description = "Path on which to store service state.";
|
description = "Path on which to store service state.";
|
||||||
};
|
};
|
||||||
|
|
||||||
immich-version = mkOption {
|
immich-version = mkOption { type = str; };
|
||||||
type = str;
|
|
||||||
description = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
debug = mkEnableOption "Enable debugging logs.";
|
debug = mkEnableOption "Enable debugging logs.";
|
||||||
|
|
||||||
|
@ -52,10 +49,12 @@ in {
|
||||||
virtualHosts = genAttrs cfg.hostnames (hostname: {
|
virtualHosts = genAttrs cfg.hostnames (hostname: {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 500M;
|
||||||
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 500M;
|
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
'';
|
'';
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
|
Loading…
Reference in New Issue