Redirect on app error to webadmin appstatus page

Part of #436
This commit is contained in:
Johannes Zellner
2015-07-28 13:46:55 +02:00
parent eea547411b
commit 3d8b90f5c8
3 changed files with 5 additions and 7 deletions

View File

@@ -37,11 +37,9 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
error_page 500 502 503 504 =200 @appstatus;
error_page 500 502 503 504 @appstatus;
location @appstatus {
internal;
root <%= sourceDir %>/webadmin/dist;
rewrite ^/$ /appstatus.html break;
return 307 <%= adminOrigin %>/appstatus.html?referrer=https://$host$request_uri;
}
location / {