Skip to content

Commit

Permalink
[FIX] raise proxy_buffers and proxy_buffer_size
Browse files Browse the repository at this point in the history
On Odoo 17 there has been a change in the hearders for the PDF viewer,
which cause a larger header to be sent by Odoo on the response the the HTTP
request for a document preview.

This larger header causes an error in Nginx because the value of
is too small to hold it.

We raise that value from 1k to 4k.

We also raise the value of proxy_buffers: the memory used by nginx is well
inside the limits of the pod in k8s so we can get a little bit more ease
in there.

closes: BGIS-1374
  • Loading branch information
gurneyalex committed Jul 25, 2024
1 parent 93277f0 commit 90a00dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 9.0/templates/nginx.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ http {
proxy_send_timeout 90;
proxy_read_timeout 90;

proxy_buffers 32 4k;
proxy_buffer_size 1k;
proxy_buffers 32 8k;
proxy_buffer_size 4k;
proxy_busy_buffers_size 8k;
proxy_max_temp_file_size 2048m;
proxy_temp_file_write_size 64k;
Expand Down

0 comments on commit 90a00dd

Please sign in to comment.