volcengine

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 3 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

VolcEngine DNS module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with VolcEngine (火山引擎) accounts.

Caddy module name

dns.providers.volcengine

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": "volcengine",
        "access_key_id":"YOUR_VOLCENGINE_ACCESS_KEY_ID",
        "access_key_secret":"YOUR_VOLCENGINE_ACCESS_KEY_SECRET"
      }
    }
  }
}

or with the Caddyfile:

# globally

acme_dns volcengine {
  access_key_id {env.VOLCENGINE_ACCESS_KEY_ID}
  access_key_secret {env.VOLCENGINE_ACCESS_KEY_SECRET}
}
# one site

tls {
  dns volcengine {
    access_key_id {env.VOLCENGINE_ACCESS_KEY_ID}
    access_key_secret {env.VOLCENGINE_ACCESS_KEY_SECRET}
  }
}

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

DNS Propagation Delay

Important: VolcEngine DNS records may take approximately 3-6 minutes to propagate after being added. Without configuring a propagation delay, you may encounter DNS validation errors such as:

{
  "identifier": "*.example.com",
  "challenge_type": "dns-01",
  "problem": {
    "type": "urn:ietf:params:acme:error:dns",
    "title": "",
    "detail": "DNS problem: NXDOMAIN looking up TXT for _acme-challenge.example.com - check that a DNS record exists for this domain"
  }
}

To avoid this issue, configure propagation_delay and propagation_timeout in your TLS configuration:

{
    email admin@example.com
    dns volcengine {
        access_key_id "YOUR_VOLCENGINE_ACCESS_KEY_ID"
        access_key_secret "YOUR_VOLCENGINE_ACCESS_KEY_SECRET"
    }
}

# Wildcard domain configuration
*.example.com {
    tls {
        # Wait before checking DNS TXT record (match your TTL, typically 10 minutes)
        propagation_delay 10m
        # Maximum wait timeout (slightly longer than delay to avoid premature termination)
        propagation_timeout 15m
        # Optional: specify public DNS resolvers to avoid local cache interference
        resolvers 223.5.5.5 119.29.29.29
    }

    # Your site configuration here
    handle {
        respond "Hello, World!"
    }
}

Configuration notes:

  • propagation_delay: The time to wait before checking if the DNS TXT record exists. Set this to match your DNS TTL (typically 10 minutes for VolcEngine).
  • propagation_timeout: The maximum time to wait for DNS propagation. Should be slightly longer than propagation_delay to avoid premature termination.
  • resolvers: Optional. Specify public DNS resolvers (e.g., 223.5.5.5, 119.29.29.29) to avoid local DNS cache interference during validation.

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{ *volcengine.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:

volcengine {
    access_key_id "<access_key_id>"
    access_key_secret "<access_key_secret>"
}

Jump to

Keyboard shortcuts

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