DNS: the token in dns/cloudflare.env, gitignored
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
2 files changed
+6
-1
No files matched your search
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user