Set global maxClientBodySize
This commit is contained in:
parent
530c2f68ea
commit
ed7fdd6e18
|
@ -46,12 +46,10 @@ in {
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
clientMaxBodySize = "1024M";
|
||||||
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 = ''
|
||||||
|
|
Loading…
Reference in New Issue