Add client_max_body_size to Nginx install configurations.
authorBrett Smith <brett@curoverse.com>
Fri, 7 Aug 2015 12:50:48 +0000 (08:50 -0400)
committerBrett Smith <brett@curoverse.com>
Fri, 7 Aug 2015 12:50:48 +0000 (08:50 -0400)
Nginx's default value for this setting is 1m, so adjusting it is all
but required to do useful work.  No issue #.

doc/install/install-api-server.html.textile.liquid
doc/install/install-keepproxy.html.textile.liquid
doc/install/install-workbench-app.html.textile.liquid

index 78c832ff5cec49e04f5ccb0dfb3f53280f65fa21..1c5f04fe3493f36990027a88216ba15e79c8bc61 100644 (file)
@@ -284,6 +284,12 @@ server {
 
   index  index.html index.htm index.php;
 
+  # This value effectively limits the size of API objects users can create,
+  # especially collections.  If you change this, you should also set
+  # `max_request_size` in the API server's application.yml file to the same
+  # value.
+  client_max_body_size 128m;
+
   location / {
     proxy_pass            http://api;
     proxy_redirect        off;
index 04dc9fd4a16823f38abd8471651c563357e0ce83..bbbec23626ebc484533f0b97632eec4d45e07c29 100644 (file)
@@ -71,6 +71,8 @@ If possible, the proxy should be configured to add CORS headers to its own error
 <notextile><pre>
 server {
   server_name keep.example.com
+  # Clients need to be able to upload blocks of data up to 64MiB in size.
+  client_max_body_size 70m;
   ...
   add_header 'Access-Control-Allow-Methods' 'GET, HEAD, POST, PUT, OPTIONS' always
   add_header 'Access-Control-Allow-Origin' '*' always
index 491f8c82450ecf9610d51330177a156f81b7536e..b478286c9fc056d892f17eeff4d8689530737bbe 100644 (file)
@@ -143,6 +143,7 @@ server {
   ssl_certificate_key <span class="userinput">/YOUR/PATH/TO/cert.key</span>;
 
   index  index.html index.htm index.php;
+  client_max_body_size 128m;
 
   location / {
     proxy_pass            http://workbench;