Skip to content

Commit 169711c

Browse files
committed
Increase proxy buffer sizes
Things like cache tag headers can be a bit too large for the NginX default buffers.
1 parent 7fb4f27 commit 169711c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

context/proxy/etc/nginx/templates/default.conf.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ server {
99
proxy_set_header Host $host;
1010
proxy_set_header X-Real-IP $remote_addr;
1111
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
12+
# Increase buffer sizes, the defaults can be too tight for
13+
# modern applications.
14+
proxy_buffer_size 16k;
15+
proxy_buffers 4 16k;
16+
proxy_busy_buffers_size 32k;
1217
}
1318
}

0 commit comments

Comments
 (0)