Skip to content

Commit

Permalink
fix: small nginx client_max_body_size
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Sep 16, 2024
1 parent 53d7dbe commit def40f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ http {
sendfile on;
keepalive_timeout 65;

proxy_request_buffering off;
client_max_body_size 0;

upstream web {
server web:4000;
}
Expand All @@ -31,8 +34,6 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 60m;
proxy_send_timeout 60m;
proxy_buffering off; # Disable buffering for WebSocket
}

Expand All @@ -45,8 +46,6 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 60m;
proxy_send_timeout 60m;
proxy_buffering off; # Disable buffering for WebSocket
}

Expand Down

0 comments on commit def40f9

Please sign in to comment.