Create cloudflare-ddns.md

This commit is contained in:
ediblerope 2026-02-15 06:24:20 +00:00 committed by GitHub
parent 529e77ead6
commit 4281e2aa3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,15 @@
1. Store your API key securely
Create a file outside your /etc/nixos directory to store your Cloudflare API token:
bashsudo mkdir -p /var/secrets
sudo nano /var/secrets/cloudflare-token
Put your Cloudflare API token in this file, then set appropriate permissions:
bashsudo chmod 600 /var/secrets/cloudflare-token
sudo chown root:root /var/secrets/cloudflare-token
3. Get your Cloudflare API Token
If you haven't created one yet:
Go to Cloudflare Dashboard → My Profile → API Tokens
Create a token with Zone:DNS:Edit permissions for your specific zone
Copy the token to /var/secrets/cloudflare-token