Try to fix nginx proxy buffering on upload

This commit is contained in:
Georges-Antoine Assi
2024-09-21 10:47:24 -04:00
parent fc6455eccb
commit d2ab0f4b16
2 changed files with 6 additions and 3 deletions

View File

@@ -21,8 +21,9 @@ http {
client_max_body_size 0;
client_header_buffer_size 1k;
large_client_header_buffers 4 16k;
send_timeout 60s;
keepalive_timeout 65s;
send_timeout 600s;
keepalive_timeout 600s;
client_body_timeout 600s;
tcp_nopush on;
tcp_nodelay on;
@@ -97,6 +98,8 @@ http {
# Backend api calls
location /api {
proxy_pass http://wsgi_server;
proxy_request_buffering off;
proxy_buffering off;
}
location /ws {
proxy_pass http://wsgi_server;

View File

@@ -32,7 +32,7 @@ async function uploadRoms({
api
.post("/roms", formData, {
headers: {
"Content-Type": "multipart/form-data; boundary=boundary",
"Content-Type": "multipart/form-data",
"X-Upload-Platform": platformId.toString(),
"X-Upload-Filename": file.name,
},