Alt i Actions-variabler og -hemmeligheter, og tomtervel.no sin DNS #1
No files matched your search
@@ -6,3 +6,4 @@ nats/nats.conf
|
|||||||
certs/
|
certs/
|
||||||
.kanidm-recovered
|
.kanidm-recovered
|
||||||
gitea-oauth.secret
|
gitea-oauth.secret
|
||||||
|
dns/cloudflare.env
|
||||||
+5
-1
@@ -8,13 +8,17 @@ from any machine.
|
|||||||
```sh
|
```sh
|
||||||
paru -S dnscontrol
|
paru -S dnscontrol
|
||||||
cd dns
|
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 check # the file parses
|
||||||
dnscontrol preview # what would change, nothing changed
|
dnscontrol preview # what would change, nothing changed
|
||||||
dnscontrol push # change it
|
dnscontrol push # change it
|
||||||
```
|
```
|
||||||
|
|
||||||
`creds.json` names the token by its variable only, so it is in the repo.
|
`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
|
## The token
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user