edgeone

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 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

EdgeOne module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with Tencent Cloud (as is https://www.tencentcloud.com or https://cloud.tencent.com) accounts.

Caddy module name

dns.providers.edgeone

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": "edgeone",
        "secret_id":  "TENCENTCLOUD_SECRET_ID",
        "secret_key": "TENCENTCLOUD_SECRET_KEY"
      }
    }
  }
}

or with the Caddyfile:

# globally

acme_dns edgeone {
  secret_id {env.TENCENTCLOUD_SECRET_ID}
  secret_key {env.TENCENTCLOUD_SECRET_KEY}
}
# one site

tls {
  dns edgeone {
    secret_id {env.TENCENTCLOUD_SECRET_ID}
    secret_key {env.TENCENTCLOUD_SECRET_KEY}
  }
}

You can replace {env.TENCENTCLOUD_SECRET_ID},{env.TENCENTCLOUD_SECRET_KEY} with the actual auth token in the "" if you prefer to put it directly in your config instead of an environment variable.

To improve DNS propagation handling, it is recommended to add the following settings to your EdgeOne DNS provider configuration:

https://caddyserver.com/docs/caddyfile/directives/tls#acme

# Maximum time to wait for DNS record propagation before timing out.
propagation_timeout 10m

# Initial delay before checking for DNS propagation.
propagation_delay 5m

# DNS resolvers to use for propagation checks.
resolvers 2402:4e00:: 119.29.29.29

Authenticating

See the associated README in the libdns package for important information about credentials.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{ *edgeone.Provider }

Provider wraps the provider implementation 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

Before using the provider config, resolve placeholders in the API token. Implements caddy.Provisioner.

func (*Provider) UnmarshalCaddyfile

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

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

edgeone {
    secret_id "<secret_id>"
    secret_key "<secret_key>"
}

Jump to

Keyboard shortcuts

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