edgeone

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 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

Quick Start Guide

1. Prerequisites

  • Go 1.21+ installed
  • Tencent Cloud account with EdgeOne service enabled
  • Domain configured in EdgeOne

2. Get API Credentials

  1. Visit Tencent Cloud API Keys
  2. Create a new API key pair
  3. Note down your Secret ID and Secret Key

3. Set Environment Variables

export EDGEONE_SECRET_ID="your_secret_id_here"
export EDGEONE_SECRET_KEY="your_secret_key_here"

4. Build Caddy with EdgeOne Plugin

# Using the build script
./build.sh

# Or manually with xcaddy
xcaddy build --with github.com/caddy-dns/edgeone

5. Create Configuration

Create a Caddyfile:

{
    acme_dns edgeone {
        secret_id {env.EDGEONE_SECRET_ID}
        secret_key {env.EDGEONE_SECRET_KEY}
    }
}

your-domain.com {
    respond "Hello from Caddy with EdgeOne DNS!"
}

6. Run Caddy

./caddy run --config Caddyfile

That's it! Caddy will automatically obtain SSL certificates using the EdgeOne DNS challenge.

Troubleshooting

  • Ensure your domain is properly configured in EdgeOne
  • Check that your API credentials have DNS management permissions
  • Verify your environment variables are set correctly
  • Check Caddy logs for any DNS challenge errors

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 credentials. 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>"
    session_token "<session_token>"  // optional
    region "<region>"                // optional
}

Jump to

Keyboard shortcuts

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