maint
Toggle nginx maintenance mode for any site, no reload needed.
nginx doesn't have a built-in maintenance mode. maint wraps the usual flag-file workaround in a small CLI plus two reusable nginx snippets, so putting a site up or back down takes one command.
$ maint example.com on
Maintenance mode ON for example.com (/etc/nginx/maintenance/example.com.on)
$ maint example.com status
example.com: MAINTENANCE ON (since 2026-08-02 18:40:11)
$ maint example.com off
Maintenance mode OFF for example.com
See the actual maintenance page → (this is what visitors get while a site's flag is on)
Install
curl -fsSL https://maint.spaceplane.dev/install.sh | sudo bash
Or, if you'd rather read the script first:
git clone https://github.com/glidecraft/nginx-maint.git
cd nginx-maint
sudo ./install.sh