[zineshop] better proxy settings for large files
All checks were successful
Check flake syntax / flake-check (push) Successful in 6m46s

This commit is contained in:
2025-04-15 12:20:06 +02:00
parent 1b0c32fce6
commit a71777634c
3 changed files with 20 additions and 0 deletions

View File

@@ -80,7 +80,13 @@ in
locations."/" = {
proxyPass = "http://10.0.0.10";
extraConfig = ''
client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 0;
sendfile on;
send_timeout 300s;
'';
};
};

View File

@@ -160,7 +160,14 @@ in
proxyPass = "http://10.0.0.15:8080";
extraConfig = ''
proxy_set_header Host $host;
client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 0;
sendfile on;
send_timeout 300s;
'';
};
};

View File

@@ -77,7 +77,14 @@ with lib;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Authorization $http_authorization; # Pass the Authorization header
proxy_pass_header Authorization;
client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 0;
sendfile on;
send_timeout 300s;
'';
};
};