noderings

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Build Caddy with this module using xcaddy:

xcaddy build --with github.com/caddy-dns/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}
	}
}

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.

Documentation

Overview

Package noderings is a Caddy module for NodeRings DNS. It lets Caddy solve ACME DNS-01 challenges (for example wildcard certificates) and manage records in zones hosted on NodeRings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{ *noderings.Provider }

Provider lets Caddy read and manipulate DNS records hosted by NodeRings.

func (Provider) CaddyModule

func (Provider) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Provider) Provision

func (p *Provider) Provision(ctx caddy.Context) error

Provision replaces placeholders such as {env.NODERINGS_API_TOKEN} in the configuration. Implements caddy.Provisioner.

func (*Provider) UnmarshalCaddyfile

func (p *Provider) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Syntax:

noderings [<api_token>] {
    api_token       <api_token>
    organization_id <organization_id>
    base_url        <base_url>
}

The API token defaults to $NODERINGS_API_TOKEN when it is not given.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL