6591: Suggest proxy timeouts in install doc Nginx configs.
authorBrett Smith <brett@curoverse.com>
Sat, 1 Aug 2015 19:05:23 +0000 (15:05 -0400)
committerBrett Smith <brett@curoverse.com>
Mon, 3 Aug 2015 17:57:30 +0000 (13:57 -0400)
These settings match what we use in production.  The defaults are more
aggressive and can cause 503 responses for larger requests.

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

index 2fbea090c09df11943f4970a68bcd5748b373ada..8625e7f54efaa0d1dc42676012b6543d12dc52cc 100644 (file)
@@ -283,6 +283,8 @@ server {
   location / {
     proxy_pass            http://api;
     proxy_redirect        off;
+    proxy_connect_timeout 90s;
+    proxy_read_timeout    300s;
 
     proxy_set_header      X-Forwarded-Proto https;
     proxy_set_header      Host $http_host;
@@ -303,6 +305,8 @@ server {
   location / {
     proxy_pass            http://websockets;
     proxy_redirect        off;
+    proxy_connect_timeout 90s;
+    proxy_read_timeout    300s;
 
     proxy_set_header      Upgrade $http_upgrade;
     proxy_set_header      Connection "upgrade";
index 6e91178ad007323a6705f82e9c7d8daa3b7a78c2..e4cc8a5ea7544861d5f50e1067c83d7b612d1ad1 100644 (file)
@@ -145,6 +145,8 @@ server {
   location / {
     proxy_pass            http://workbench;
     proxy_redirect        off;
+    proxy_connect_timeout 90s;
+    proxy_read_timeout    300s;
 
     proxy_set_header      X-Forwarded-Proto https;
     proxy_set_header      Host $http_host;