caddydnspodcn

package module
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

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>
}

Jump to

Keyboard shortcuts

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