a29964778a
This patch updates the example NGINX config to increase the proxy_buffer_size to 16k. The default value of 4k (on some platforms) has empirically been shown to be a bit too small for the Link headers emitted by the REST API when pagination is requested. To test ------- [1] Set up a Koha system with NGINX as a reverse proxy in front of it (either in front of Apache or in front of of Starman). [2] Perform a patron search that returns at least two pages of results and navigate to the second page. [3] Note that the navigation can fail with a 502 HTTP error and an "upstream sent too big header while reading response header from upstream" error in the NGINX log. The problem is most likely when the pagesize of the server running NGINX is 4096 bytes. [4] Update the NGINX configuration per this patch and restart NGINX. [5] This time, repeating step 2 should work. Signed-off-by: Galen Charlton <gmc@equinoxOLI.org> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
41 lines
859 B
Nginx Configuration File
41 lines
859 B
Nginx Configuration File
# This config file assume you are using starman with the app.psgi that can be
|
|
# found in the root directory of Koha, and that it listens on ports 5000-5001
|
|
|
|
upstream intranet {
|
|
server 127.0.0.1:5000;
|
|
}
|
|
upstream opac {
|
|
server 127.0.0.1:5001;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name intranet.koha-dev; # CHANGEME
|
|
|
|
location / {
|
|
include proxy_params;
|
|
proxy_pass http://intranet;
|
|
|
|
# provide room for the Link headers emitted
|
|
# by REST API methods when doing pagination
|
|
proxy_buffer_size 16k;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name opac.koha-dev; # CHANGEME
|
|
|
|
location / {
|
|
include proxy_params;
|
|
proxy_pass http://opac;
|
|
|
|
# provide room for the Link headers emitted
|
|
# by REST API methods when doing pagination
|
|
proxy_buffer_size 16k;
|
|
}
|
|
}
|