Add maintenance page feature to Mastodon nginx site

This commit is contained in:
2019-05-07 15:49:01 +02:00
parent 36a50489d0
commit 1ee2b5ad41

View File

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