Add maintenance page feature to Mastodon nginx site
This commit is contained in:
parent
36a50489d0
commit
1ee2b5ad41
@ -35,6 +35,11 @@ server {
|
|||||||
add_header Strict-Transport-Security "max-age=31536000";
|
add_header Strict-Transport-Security "max-age=31536000";
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
# If the maintenance file is present, show maintenance page
|
||||||
|
if (-f <%= @mastodon_path %>/public/maintenance.html) {
|
||||||
|
return 503;
|
||||||
|
}
|
||||||
|
|
||||||
try_files $uri @proxy;
|
try_files $uri @proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user