7645: Install guide suggests setting client_max_body_size consistently.
authorBrett Smith <brett@curoverse.com>
Mon, 9 Nov 2015 17:43:58 +0000 (12:43 -0500)
committerBrett Smith <brett@curoverse.com>
Thu, 12 Nov 2015 21:33:16 +0000 (16:33 -0500)
Without these changes, the upstream Passenger processes may reject
large request bodies.

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

index 695584fa247f2176db5d690adebf4b9002389f0d..69ff768ee1f17286c372719d5deb0c6171799356 100644 (file)
@@ -244,6 +244,14 @@ exec chpst -m 1073741824 -u webserver-user:webserver-group -e "$envdir" \
   passenger_enabled on;
   # If you're using RVM, uncomment the line below.
   #passenger_ruby /usr/local/rvm/wrappers/default/ruby;
+
+  # This value effectively limits the size of API objects users can
+  # create, especially collections.  If you change this, you should
+  # also ensure the following settings match it:
+  # * `client_max_body_size` in the server section below
+  # * `client_max_body_size` in the Workbench Nginx configuration (twice)
+  # * `max_request_size` in the API server's application.yml file
+  client_max_body_size 128m;
 }
 
 upstream api {
@@ -277,10 +285,7 @@ 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.
+  # Refer to the comment about this setting in the server section above.
   client_max_body_size 128m;
 
   location / {
index 22fc1557a8fae0336fff6f0f80e89e8f8d1b1262..d05d94daa102e0b6b3a085c06e887905da775f29 100644 (file)
@@ -115,6 +115,10 @@ For best performance, we recommend you use Nginx as your Web server front-end, w
   passenger_enabled on;
   # If you're using RVM, uncomment the line below.
   #passenger_ruby /usr/local/rvm/wrappers/default/ruby;
+
+  # `client_max_body_size` should match the corresponding setting in
+  # the API server's Nginx configuration.
+  client_max_body_size 128m;
 }
 
 upstream workbench {
@@ -132,6 +136,8 @@ server {
   ssl_certificate_key <span class="userinput">/YOUR/PATH/TO/cert.key</span>;
 
   index  index.html index.htm index.php;
+  # `client_max_body_size` should match the corresponding setting in
+  # the API server's Nginx configuration.
   client_max_body_size 128m;
 
   location / {