README

Caddy2 DNSPod.cn DNS Provider Module

Build Status Coverage Status Go.Dev reference Go Report Card Release

Usage

Install xcaddy

$ go get -u github.com/caddyserver/xcaddy/cmd/xcaddy

Rebuild caddy with dnspodcn module

$ xcaddy build --with clevergo.tech/caddy-dnspodcn

Configuration

Caddyfile example:

## defines a dnspodcn snippet
(dnspodcn) {
    dns dnspodcn APP_ID APP_TOKEN
}


domain.tld {
    tls {
        # imports dnspodcn setting.
        import dnspodcn
    }
}
  • APP_ID: API ID.
  • APP_TOKEN: API TOKEN.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	*dnspodcn.Provider
}

    Module wraps dnspodcn.Provider.

    func (*Module) CaddyModule

    func (m *Module) CaddyModule() caddy.ModuleInfo

      CaddyModule returns the Caddy module information.

      func (*Module) UnmarshalCaddyfile

      func (m *Module) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

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

        dnspodcn [<app_id> <app_token>] {

        app_id <app_id>
        app_token <app_token>
        

        }

        Source Files