Skip to content
caddy-dnsPublic

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeRings module for Caddy

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.

Caddy module name

dns.providers.noderings

Install

You can get Caddy with this module in either of two ways:

  1. No Go needed: open the Caddy download page with github.com/caddy-dns/noderings already selected, pick your OS, and click Download.

  2. Or build it yourself with xcaddy:

xcaddy build --with github.com/caddy-dns/noderings

Module docs: https://caddyserver.com/docs/modules/dns.providers.noderings

Config examples

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.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Generated from caddy-dns/template