Installation
Add the scrip on the server
git clone https://git.coopcloud.tech/RTM/sootie-dynamic-dns.git
Test the script run
cloudflare_api_token=<replace-with-actual-key> python3 main.py
Add the command to a cron job
* * * * * cloudflare_api_token=<replace-with-actual-token> python3 <path-to-project>/main.py >> <path-to-project>/logs.out
Headscale records
python headscale.py > headscale-records.json
git add headscale-records.json
git commit -m "(chore) update dns"
# publish the new records, release
# major would change x.y.z version to x+1.0.0
# minor would change x.y.z version to x.y+1.0
# patch would change x.y.z verion to x.y.z+1
./release.sh [major,minor,patch]
Description
Languages
Python
73%
Shell
19.2%
Nix
7.8%