Do not redirect on app upstream error but show static error page

Fixes #4
This commit is contained in:
Johannes
2016-11-21 15:40:33 +01:00
parent 3bcd255a07
commit d39a84ea53
2 changed files with 60 additions and 26 deletions

View File

@@ -43,9 +43,10 @@ server {
proxy_set_header Connection $connection_upgrade;
# only serve up the status page if we get proxy gateway errors
error_page 502 503 504 @appstatus;
location @appstatus {
return 307 <%= adminOrigin %>/appstatus.html?referrer=https://$host$request_uri;
root <%= sourceDir %>/webadmin/dist;
error_page 502 503 504 /appstatus.html;
location /appstatus.html {
internal;
}
location / {