A static HTML page for fetching and displaying a "website in maintenance mode" message for a target origin.
- HTML 100%
This PR removes the custom `X-` headers from the example nginx config. It causes problems for certain upstreams that will try to redirect the connecting client to `localhost` instead of the real `Host` Reviewed-on: #3 |
||
|---|---|---|
| example.conf | ||
| index.html | ||
| README.md | ||
Maintenance Status Page
Single-file static maintenance page for nginx proxy failures.
Deploy index.html to /var/www/maintenance/index.html. When nginx cannot reach the configured upstream, example.conf shows how to serve this file as a 503 fallback.
The page fetches https://blob.vlw.se/status.json, checks the current origin, supports parent-domain matches like example.srv.vlw.se -> srv.vlw.se, and falls back to the debug key.
Example status file:
{
"srv.vlw.se": true,
"debug": false
}