Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
status 503
}
}
# When maintenance ends, redirect stale /maintenance.html requests back to home
@staleMaintenancePage {
path /maintenance.html
not file {
root /srv
try_files maintenance.on
}
}
redir @staleMaintenancePage / 302

# Serves static files, should be the same as `STATIC_ROOT` setting:
root * /var/www/django
Expand Down