Make app error page customizable

This commit is contained in:
Girish Ramakrishnan
2020-02-04 17:32:38 -08:00
parent 4f57d97fff
commit 763e14f55d
2 changed files with 10 additions and 1 deletions

View File

@@ -128,7 +128,14 @@ server {
# only serve up the status page if we get proxy gateway errors
root <%= sourceDir %>/dashboard/dist;
# some apps use 503 to indicate updating or maintenance
error_page 502 504 /appstatus.html;
error_page 502 504 /app_error_page;
location /app_error_page {
root /home/yellowtent/boxdata;
# the first argument looks for file under the root
try_files /app_not_responding.html /appstatus.html;
# internal means this is for internal routing and cannot be accessed as URL from browser
internal;
}
location /appstatus.html {
internal;
}