services are being migrated from an existing standalone LXD/LXC server into the new cluster. Various media libraries, web hosts, blog sites, and photo sharing, also a NextCloud instance I use instead of Google Drive. I don't know why I do this to myself.
Using the cloudflare API and some code written by LINKIWI, we can update the DNS pointers on Cloudflare automatically. I am launching a separate container for this, just because I can.
NOTE: The python script only works with python 2
Install required software
sudo apt update && \ ## Install build tools, python/pip sudo apt install -y build-essential python-minimal python-pip && \ ## Clean any leftover apps sudo apt autoremove -y && \ ## Upgrade pip, -H sets current users home as path sudo -H pip install --upgrade pip &&\ # Clone repo and install git clone https://github.com/LINKIWI/cloudflare-ddns-client.git && \ cd cloudflare-ddns-client && \ sudo make install && \ # Configure cloudflare-ddns --configure
Follow the prompts to add your Cloudflare email and SECRET API key.
Test with an update
Schedule automatic updates
Add a line:
0 0 * * * /usr/local/bin/cloudflare-ddns --update-now > /dev/null 2>&1