diff --git a/.gitignore b/.gitignore index 27f4f02..ce5cfb5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ nats/nats.conf certs/ .kanidm-recovered gitea-oauth.secret +dns/cloudflare.env diff --git a/dns/README.md b/dns/README.md index 5c929f4..ffef800 100644 --- a/dns/README.md +++ b/dns/README.md @@ -8,13 +8,17 @@ from any machine. ```sh paru -S dnscontrol cd dns -export CLOUDFLARE_API_TOKEN=... # see below; never commit it +# The token in dns/cloudflare.env (gitignored, chmod 600), one line: +# CLOUDFLARE_API_TOKEN=... +set -a; . ./cloudflare.env; set +a # bash; in fish: export (cat cloudflare.env) dnscontrol check # the file parses dnscontrol preview # what would change, nothing changed dnscontrol push # change it ``` `creds.json` names the token by its variable only, so it is in the repo. +The account ID is not needed (it is only for creating zones), and there +is no state to keep, so no S3 keys either. ## The token