Configure maintenance error page for 503
This commit is contained in:
parent
1ee2b5ad41
commit
99a677ec47
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user