Skip to content
Permalink
Browse files

Increase number of nginx buffers

Increase the number of client body and proxy buffers so that nginx can handle requests/responses containing polygons with a large number of coordinates without writing to disk.
  • Loading branch information...
tnation14 authored and pcaisse committed Sep 28, 2018
1 parent d58b491 commit 7de2a57a7c2cca5c09a63d87adff4e1ade504dcf
Showing with 17 additions and 1 deletion.
  1. +17 −1 nginx/default.template
@@ -15,9 +15,25 @@ server {
# Long timeouts are necessary for extended split reports
proxy_read_timeout 300s;

location ~ /districtmapping/plan/\d+/unlockedgeometries/ {
client_max_body_size 20m;
client_body_buffer_size 1m;

# More buffers are necessary for responses containing
# Polygon selections
proxy_buffers 24 4k;
proxy_pass http://web;
}

location ~ /districtmapping/plan/\d+/district/versioned/ {
# More buffers are necessary for responses containing
# Polygon selections
proxy_buffers 24 4k;
proxy_pass http://web;
}

location / {
proxy_pass http://web;
client_max_body_size 20M;
}

location /geoserver/ {

0 comments on commit 7de2a57

Please sign in to comment.
You can’t perform that action at this time.