mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Try to fix nginx proxy buffering on upload
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user