Skip to content

Commit 83afc3f

Browse files
fix(router): Increased connect timeout
Heroku terminates requests after 30 seconds and the nginx default is 60 seconds
1 parent 1cb0655 commit 83afc3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

router/templates/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ http {
7575
server {
7676
server_name ~^deis-store\.(?<domain>.+)$;
7777
include deis.conf;
78-
78+
7979
client_max_body_size 0;
8080

8181
location / {
@@ -112,7 +112,7 @@ http {
112112
{{ end }}
113113
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
114114
proxy_redirect off;
115-
proxy_connect_timeout 10s;
115+
proxy_connect_timeout 30s;
116116
proxy_send_timeout 1200s;
117117
proxy_read_timeout 1200s;
118118
proxy_http_version 1.1;

0 commit comments

Comments
 (0)