Add self-contained maintenance web page #60

Merged
raucao merged 6 commits from feature/maintenance_page into master 2019-05-07 14:53:23 +00:00
Showing only changes of commit 99a677ec47 - Show all commits
@@ -36,7 +36,7 @@ server {
location / { location / {
# If the maintenance file is present, show maintenance page # If the maintenance file is present, show maintenance page
if (-f <%= @mastodon_path %>/public/maintenance.html) { if (-f /maintenance.html) {
return 503; return 503;
} }
@@ -88,5 +88,6 @@ server {
tcp_nodelay on; tcp_nodelay on;
} }
error_page 500 501 502 503 504 /500.html; error_page 500 501 502 504 /500.html;
error_page 503 /maintenance.html;
} }