A rewrite of sylk0s/cloudflare-ddns.
- I wanted to write the project in rust
- cloudflare-ddns was unreliable and hard to maintain
Also, the rust cloudflare library is still in development, and has little documentation, so I decided to just use reqwest
to make http calls instead to their API since I'm just trying to do a hyperspecific thing.
Put your cloudflare token in a file called ./token
. Modify the script to include your ZONE_NAME and RECORD_NAME. Then run ./build_docker.sh
.
For now, a shell.nix is provided for rust development on nix. Otherwise, follow the Development guide
TODO: Implement building and deployment in nix automatically
Use a .env
file to specifiy ZONE_NAME
, RECORD_NAME
, and TOKEN
. This will be loaded into the enviornment variables when run.