Configure maintenance error page for 503

This commit is contained in:
Basti 2019-05-07 15:52:58 +02:00
parent 1ee2b5ad41
commit 99a677ec47
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -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;
} }