httpnet

package module
v0.0.0-...-7e438d7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 4 Imported by: 1 module, 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

caddy-dns/httpnet

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with http.net.

Caddy module name

dns.providers.httpnet

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": "httpnet",
        "auth_token": "YOUR_HTTPNET_AUTH_TOKEN"
      }
    }
  }
}

Or with the Caddyfile:

# globally
{
    acme_dns httpnet <auth_token>
}
# one site, inline token
tls {
    dns httpnet <auth_token>
}
# one site, block form with env-var placeholder
tls {
    dns httpnet {
        auth_token {env.HTTPNET_AUTH_TOKEN}
    }
}

Building with xcaddy

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

Documentation

Overview

Package httpnet implements a Caddy DNS provider module for http.net.

This module wraps github.com/libdns/httpnet and registers it with Caddy's module system so it can be used to solve ACME DNS-01 challenges.

Caddyfile syntax:

# Inline arg (auth token)
tls {
    dns httpnet <auth_token>
}

# Block form
tls {
    dns httpnet {
        auth_token <auth_token>
    }
}

Credentials may use Caddy placeholder syntax, e.g. {env.HTTPNET_AUTH_TOKEN}.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{ *httpnet.Provider }

Provider wraps the libdns http.net provider as a Caddy module.

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. It resolves any Caddy placeholder expressions (e.g. environment variable references) in the credentials. Implements caddy.Provisioner.

func (*Provider) UnmarshalCaddyfile

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

UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens.

Syntax:

httpnet [<auth_token>] {
    auth_token <auth_token>
}

Jump to

Keyboard shortcuts

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