Unverified Commit 8ccd0b78 authored by Christopher Guindon's avatar Christopher Guindon Committed by GitHub
Browse files

502 Bad Gateway on large requests through API, too small buffers #285 (#289)

* 502 Bad Gateway on large requests through API, too small buffers #285

* Update nginx.conf
parent ea7fad4f
......@@ -5,6 +5,12 @@ server {
client_max_body_size 16m;
client_body_buffer_size 128k;
# proxy buffering configuration
# https://stackoverflow.com/a/27551259/8538422
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
location /api {
# don't cache it
......@@ -31,4 +37,4 @@ server {
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment