geosolutions-it / docker-geoserver

Docker Image for GeoServer
Other
63 stars 44 forks source link

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

Closed ale-cristofori closed 1 year ago

ale-cristofori commented 1 year ago

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.

boukandouramhamed commented 1 year ago

@randomorder I've increased an tested the proxy_temp_file_write_size.

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.