njalla

package module
v0.0.0-...-e751db9 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 3 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

Njalla module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records for Njalla accounts.

Caddy module name

dns.providers.njalla

Config examples

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": "njalla",
        "api_token": "YOUR_NJALLA_API_TOKEN"
      }
    }
  }
}

or with the Caddyfile:

your.domain.com {
    tls {
        dns njalla {
            api_token YOUR_NJALLA_API_TOKEN
        }
    }
}

Authenticating

You'll need to get an API token from Njalla:

  1. Log in to your Njalla account
  2. Go to Settings (gear icon in top right)
  3. Click on API
  4. Create a new token
  5. Use that token in your Caddy configuration

For more information about the underlying DNS provider, see the libdns/njalla README.

Building

To build Caddy with this module, use xcaddy:

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*libdnsnjalla.Provider
}

Provider lets Caddy read and manipulate DNS records hosted by this DNS provider.

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 sets up the module. Implements caddy.Provisioner.

func (*Provider) UnmarshalCaddyfile

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

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

njalla {
    api_token <api_token>
}

Jump to

Keyboard shortcuts

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