Unraid plugins
![unraid plugins unraid plugins](https://www.52help.net/data/upload/202002/f_ebade6284b562010efac2918956b6815.png)
When the backup is finished a script will run and it will change the "route pattern" back to /* I have also added another worker that I called up So when everything is back up the maintenance subdomain will display this: This will display the page in the screenshot below when someone is trying to access my blog. So when the backup starts it will run a script that updates the route pattern to /* and sets the route to use the maintenance worker.
UNRAID PLUGINS UPDATE
The way I have this setup is that I am using the API to update the "route pattern" that the worker is using. The subdomains only purpose is to be a placeholder for the maintenance page when the nightly backups aren't running. So I just added something that made sense to me. The subdomain you choose shouldn't be something you use as that will disrupt that domain. I'm using Remember to add the DNS record before you create the route. Set the route to a subdomain that doesnt point to your site. After a minute or so you should be able to visit the page the worker is deployed on.Īfter you've created the worker, go back to the main page and click on Add route
UNRAID PLUGINS CODE
Give your worker a name and paste the code below. Next click on Manage Workers and Create a Worker On your Cloudflare dashboard click on Workers and go through the first time setup if you haven't done that yet. We will need to create a worker and setup a route for it. This is all made possible by using the Cloudflare API and Cloudflare workers. Now Since that is something I don't need I have removed that function so you will be routed to the page regardless with the code below. The javascript returns the maintenance page if you are not calling from a trusted IP.
UNRAID PLUGINS HOW TO
So after some googling I found this great resource on how to route people to their maintenance page while they are doing maintenance. Note: This wouldn't have been an issue if the "Always Online" fuctionality worked on my site So since that has been a minor annoyance for some time, I decided to look into how I could set up a maintenance page automatically when the backup starts. Since I use the CA Backup/Restore plugin every night my blog site will some times show the Cloudflare 523 error: origin is unreachable for around 1 hour before the plugin finishes and starts all my docker containers up again. How to setup a Cloudflare worker to show a maintenance page when the CA Backup plugin is running on Unraid ¶ Remotely accessing the Unraid GUI with Guacamole and VNC Web Browser Optimizing PHP-FPM to get faster load times of tabs in Organizr How to setup Cloudflare and fail2ban with automated “set_real_ip_from” in nginx Migrating/Merging View History between two Plex Servers - Avoiding Negative Unwatched CountĪdding ban/unban notifications from Fail2Ban to Discord!Īdding ban/unban notifications from Fail2Ban to Pushover! How to setup GitLab to use Rack Attack and ban abusive IPs and rate limit requests How to setup Grafana, InfluxDB and Telegraf to monitor your unRAID systemīlocking countries with GeoLite2 in nginx using the swag docker container Monitoring your UPS stats and cost with InfluxDB and Grafana on Unraid - Apcupsd Container Edition If you need any extra help join the Discord server
![unraid plugins unraid plugins](https://d1grq5ng0vix8v.cloudfront.net/original/1X/c9d429d0c3cf8ef48e6d582e24d2cbdd6b86d14c.jpeg)
How to setup a Cloudflare worker to show a maintenance page when the CA Backup plugin is running on Unraid Redirecting visitors to a 403 forbidden page when accessing the WordPress admin page How to add email notifications to Fail2ban Monitoring your UPS stats and cost with InfluxDB and Grafana on Unraid - NUT Edition Monitoring your UPS stats and cost with InfluxDB and Grafana on Unraid - Telegraf Edition How to route metrics in Telegraf to different Influx databases Visualizing Nginx geo data metrics with Python, InfluxDB and Grafanaīlocking SSH Connections with the GeoLite2 Database How to add dark mode to any app with this one simple trick! How to add a custom login page for Unraid!