geosolutions-it/docker-geoserver

NGINX configuration - `proxy_temp_file_write_size` must be equal or higher than `proxy_buffer_size`

Closed this issue · 1 comments

When building the Geoserver image (as it is right now), the NGINX reverse proxy container will build but it will fail to start with the following error message.

2023-07-25 12:54:52 2023/07/25 10:54:52 [emerg] 1#1: "proxy_temp_file_write_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /etc/nginx/nginx.conf:32
2023-07-25 12:54:52 nginx: [emerg] "proxy_temp_file_write_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /etc/nginx/nginx.conf:32

The proxy_temp_file_write_size is now set to 32kb and according to the error message it should be raised to be at least 256kb, the current value.

@randomorder I've increased an tested the proxy_temp_file_write_size.

  • proxy_temp_file_write_size 256k: Was throwing same error
  • proxy_temp_file_write_size 257k: Was throwing same error
  • proxy_temp_file_write_size 300k: Was throwing same error
  • proxy_temp_file_write_size 512k: fixed the issue.

proxy_temp_file_write_size: is the size of file where nginx will save response from reverse proxy incase proxy_buffer_size is not enough. The new 512k value should be fine.

Screenshot 2023-07-26 112637

A PR is created.