Fix maintenance page paths
This commit is contained in:
parent
016f75f89b
commit
89027f1f32
@ -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 /maintenance.html) {
|
if (-f <%= @mastodon_path %>/public/maintenance.html) {
|
||||||
return 503;
|
return 503;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,4 +90,9 @@ server {
|
|||||||
|
|
||||||
error_page 500 501 502 504 /500.html;
|
error_page 500 501 502 504 /500.html;
|
||||||
error_page 503 /maintenance.html;
|
error_page 503 /maintenance.html;
|
||||||
|
|
||||||
|
location = /maintenance.html {
|
||||||
|
root <%= @mastodon_path %>/public;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user