Skip to content

Commit 590499e

Browse files
committed
Merge pull request #1360 from soficom/nginx_50x_errors
feat(router) Avoid nginx 502, 503, 504 errors
2 parents 8addcf6 + 22b3ba6 commit 590499e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

router/templates/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ http {
8181
proxy_send_timeout 1200s;
8282
proxy_read_timeout 1200s;
8383

84+
proxy_next_upstream error timeout http_502 http_503 http_504;
85+
8486
add_header X-Deis-Upstream $upstream_addr;
8587

8688
proxy_pass http://{{ Base $service.Key }};

0 commit comments

Comments
 (0)