Ultra simple website to tell people a service is down https://down.depeuter.dev
Find a file
Tibo De Peuter 2dfce58c6d
chore: Change URL to mirror
Change to mirror site to avoid having the source code offline when the
main server is down.
2024-04-15 21:11:03 +02:00
assets Add icon and make images local 2023-08-03 18:38:27 +02:00
index.html chore: Change URL to mirror 2024-04-15 21:11:03 +02:00
package-lock.json Add package.json 2023-08-04 15:43:19 +02:00
package.json Add package.json 2023-08-04 15:43:19 +02:00
README.md Add documentation 2023-08-04 15:44:52 +02:00
script.js Add simple button to try again for now 2023-08-04 15:46:53 +02:00
style.css Improve responsiveness 2023-08-04 16:45:20 +02:00

down-message

Netlify Status

Ultra simple website to tell people a service is down

Starting the website

npm run start

Setup networking

Using Cloudflare

If you want to use Cloudflare to handle redirection to the website, you can use Page Rules.

First, make sure the DNS records for the (sub-) domains you want to redirect are being proxied through Cloudflare. Then, head over to Redirect Rules (Page Rules are harder to configure, and it seems like Cloudflare itself is more keen of Redirect Rules too).

Create a Single Redirect rule that looks similar to:

# When incoming requests match...
(http.host in {"example.com" "another.example.com"})

# Then URL redirect
Dynamic
concat("https://your.host.tdl/?destination=", http.request.full_uri)
302

Enable the rule and everything should be set!