New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Cloudflare Auto Update IP if server goes down?
Hi,
So basically.
This is my current setup
Cloudflare --> Nginx Reverse Proxy --> WebServer
Lately my Nginx Reverse Proxy, which is a OVH Box, keeps going offline for extended periods of times, this has happened twice so far for 6+ hours which is causing me problems.
I wanted to setup a backup reverse proxy and then some how have it so that if Reverse proxy #1 fails, cloudflare automatically gets updated with the ip of #2.
Is there a script that can check if #1 is offline, and if so, then update the DNS with the ip of #2?
Comments
You mean something like this? http://www.hitsteps.com/blog/cloudflare-automatic-ip-failover/
Exactly. Thank you!
https://github.com/blackdotsh/UptimeFlare I just updated it to CF API v4 so you might want to do some testing