You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add this script healthcheck.sh to the same folder as your docker-compose.yml:
#!/bin/sh# Check to see if the script is runningif! ps ax | grep [c]loudflare-ddns > /dev/null 2>&1;thenecho"cloudflare-ddns process not found. Exiting."exit 1
fi# Get the remote IP from Cloudflare debugging page
local_ip=$(wget -qO - https://www.cloudflare.com/cdn-cgi/trace | grep '^ip='| cut -d= -f2)# Get the IP address for one of our DDNS URLs
remote_ip=$(getent hosts YOUR.WEBSITE.HERE | awk '{ print $1 }')# Compare the two IP addressesif [[ "$remote_ip"="$local_ip" ]];thenecho"DDNS address is correct: $local_ip"elseecho"The IP addresses do not match:"echo"Local IP: $local_ip"echo"Cloudflare IP: $remote_ip"exit 1
fi
Then update your docker-compose.yml to add the healthcheck:
Describe the bug
I sometimes losse internet and after that the container never recovers from that and is trowing a authentication error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Don't try to update the IP if it is failing to get the ip
Server:
The text was updated successfully, but these errors were encountered: