Skip to content

Commit edbed4d

Browse files
authored
Add proxy buffer size config to fix Bad Gateway (#1984)
To prevent `upstream sent too big header while reading response header from upstream` error
1 parent ec4f416 commit edbed4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nginx/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ http {
3737
proxy_http_version 1.1;
3838
proxy_redirect off;
3939
proxy_buffering off;
40+
proxy_buffer_size 128k;
41+
proxy_buffers 4 256k;
42+
proxy_busy_buffers_size 256k;
4043
proxy_next_upstream error timeout invalid_header http_502 http_503 non_idempotent;
4144
proxy_next_upstream_tries 2;
4245

0 commit comments

Comments
 (0)