haha i am glad you asked because i did not take the time to explain this part (i should have - there is a lot to explain and Cloudflare is complex!)
when the workers route page is set, every single image load and page view on the forum is routing through that worker.
the Cloudflare free CDN plan includes free 100,000 requests/day limit on a worker route.
thus, if you have a relatively busy forum, in order to prevent hitting your free tier cap in a day it is a good idea not to have it on all the time.
so this is just the worker route, not the maintenance page - you can leave the maintenance page up the whole time - it does not get hit unless you have the worker route on it. this is just that Step 2 part where you assigned the route (which is easy to setup and delete). unless you are using a cloudflare paid plan, it is thus good practice to only have it on when you are doing your own maintenance.
- go to the Cloudflare workers route page for your domain and click the button on the right side of the route.
- at the bottom of the edit screen, click the
removebutton to detach the worker page from the route.
- don’t worry, the worker code itself won’t be deleted, just the routing rule. then next time you do your rebuilt / update, you can just add it again like in Step 2 above.
if you are on a paid Cloudflare plan then you have nothing to worry about. However, then you can use the Cloudflare error pages instead of a workers page… (did i mention that Cloudflare is pretty complex? LOL)
my general steps are:
- add the workers route on Cloudflare
- ssh into hetzner
- do any system updates (eg:
sudo apt update && sudo apt upgrade -y), then reboot the server if necessary (i useshutdown -r nowto do a full shut down and restart) - ssh in again if i needed to restart my server
- run
./update-web.sh - once the shell script is complete and my forum loads again, i remove the workers route on Cloudflare

