/caddy-dnspodcn

Caddy2 DNSPod.cn DNS Provider 模块

Primary LanguageGoMIT LicenseMIT

Caddy2 DNSPod.cn DNS Provider Module

Build Status Coverage Status Go.Dev reference Go Report Card Release Downloads Chat Community

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:

tls {
  dns dnspodcn APP_ID APP_TOKEN
}

json example:

{
  "module": "acme",
  "challenges": {
    "dns": {
      "provider": {
        "Language": "en",
        "BaseURL": "https://dnsapi.cn",
        "name": "dnspodcn",
        "AppID": "APP_ID",
        "AppToken": "APP_TOKEN"
      }
    }
  }
}
  • APP_ID: API ID.
  • APP_TOKEN: API TOKEN.