Sets some Cloudflare record to the public IP of the server the script is running on. Very useful as a cheap-and-dirty dynamic DNS solution.
Create a .env
file by running cp .env.example .env
and customizing it to suit your needs and then execute the script using php run.php
.
docker run -e "DOMAIN=example.com" -e "SUBDOMAIN=some.example.com" -e "[email protected]" -e "CLOUDFLARE_KEY=c0ffee" -e "RECORD_TYPE=A" limenet/public-ip-to-cloudflare
You can optionally supply PUSHOVER_API_TOKEN
and PUSHOVER_USER
to be notified via Pushover if the IP has changed since the last update.