From 3c7ebdcb55f15fc2faa39a55da1160a37aaf464c Mon Sep 17 00:00:00 2001 From: Mykola Marzhan Date: Thu, 16 Feb 2017 07:32:15 +0200 Subject: [PATCH] handle very-slow updates correctly --- landing-page/index.html | 7 ++++++- nginx.conf | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/landing-page/index.html b/landing-page/index.html index 5c5e1f57d..d01ff3833 100644 --- a/landing-page/index.html +++ b/landing-page/index.html @@ -155,7 +155,12 @@ checkUpdate.fail(function(jqXHR) { console.log(jqXHR.responseText); $("#checkLoader").hide(); - $("#updateText").text(jqXHR.responseJSON.title); + if (jqXHR.status === 404 ) { + $("#updateText").text(jqXHR.responseJSON.title); + } else { + $("#updateText").text("Unknown issue: " + jqXHR.statusText); + $("#updateRunBtn").show(); + } $("#updateText").show(); }); } diff --git a/nginx.conf b/nginx.conf index cfbdf705d..3ac17aedb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -74,5 +74,6 @@ # Configurator location /configurator { proxy_pass http://127.0.0.1:7777; + proxy_read_timeout 86400; } }