This package contains a DNS provider module for Caddy. It can be used to manage DNS records with NodeRings DNS, for example to get wildcard certificates with the ACME DNS-01 challenge.
It is built on libdns/noderings and needs Caddy 2.10 or newer.
dns.providers.noderings
You can get Caddy with this module in either of two ways:
-
No Go needed: open the Caddy download page with
github.com/caddy-dns/noderingsalready selected, pick your OS, and click Download. -
Or build it yourself with
xcaddy:
xcaddy build --with github.com/caddy-dns/noderingsModule docs: https://caddyserver.com/docs/modules/dns.providers.noderings
Create an API token (or a service account token) in the NodeRings dashboard. It needs access to the zones Caddy should manage.
To use this module for the ACME DNS challenge, configure the ACME issuer in your Caddy JSON like so:
{
"module": "acme",
"challenges": {
"dns": {
"provider": {
"name": "noderings",
"api_token": "{env.NODERINGS_API_TOKEN}"
}
}
}
}or with the Caddyfile:
# globally
{
acme_dns noderings {env.NODERINGS_API_TOKEN}
}
# one site
example.com, *.example.com {
tls {
dns noderings {env.NODERINGS_API_TOKEN}
}
}
A complete Caddyfile that obtains certificates, including wildcards:
{
acme_dns noderings {env.NODERINGS_API_TOKEN}
}
*.example.com, example.com {
respond "hello"
}
All options:
noderings [<api_token>] {
api_token <api_token>
organization_id <organization_id>
base_url <base_url>
}
| Option | Description |
|---|---|
api_token |
NodeRings API token. Defaults to $NODERINGS_API_TOKEN. |
organization_id |
Only needed when the token belongs to more than one organization. Defaults to $NODERINGS_ORGANIZATION_ID. |
base_url |
API base URL. Defaults to $NODERINGS_API_URL, then https://api.noderings.com. |