Set global maxClientBodySize

This commit is contained in:
niten 2024-05-23 11:48:03 -07:00
parent 530c2f68ea
commit ed7fdd6e18
1 changed files with 1 additions and 3 deletions

View File

@ -46,12 +46,10 @@ in {
services.nginx = {
enable = true;
clientMaxBodySize = "1024M";
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 = ''