Add maintenance page feature to Mastodon nginx site

This commit is contained in:
Basti 2019-05-07 15:49:01 +02:00
parent 36a50489d0
commit 1ee2b5ad41
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -35,6 +35,11 @@ server {
add_header Strict-Transport-Security "max-age=31536000";
location / {
# If the maintenance file is present, show maintenance page
if (-f <%= @mastodon_path %>/public/maintenance.html) {
return 503;
}
try_files $uri @proxy;
}