From 83afc3f5ac20904a5ad6dc9f3d871992b9a6340d Mon Sep 17 00:00:00 2001 From: johanneswuerbach Date: Sat, 8 Nov 2014 18:47:50 -0800 Subject: [PATCH] fix(router): Increased connect timeout Heroku terminates requests after 30 seconds and the nginx default is 60 seconds --- router/templates/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/templates/nginx.conf b/router/templates/nginx.conf index b6de8a32fb..c949a270ef 100644 --- a/router/templates/nginx.conf +++ b/router/templates/nginx.conf @@ -75,7 +75,7 @@ http { server { server_name ~^deis-store\.(?.+)$; include deis.conf; - + client_max_body_size 0; location / { @@ -112,7 +112,7 @@ http { {{ end }} proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; - proxy_connect_timeout 10s; + proxy_connect_timeout 30s; proxy_send_timeout 1200s; proxy_read_timeout 1200s; proxy_http_version 1.1;