mythicbeasts

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 4 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

Mythic Beasts module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with Mythic Beasts.

Caddy module name

dns.providers.mythicbeasts

Building using xcaddy

To build Caddy with this module, use the following xcaddy command:

xcaddy build --with github.com/caddyserver/dnsproviders/mythicbeasts

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": "mythicbeasts",
                            "key_id": "{env.MYTHIC_KEY_ID}",
                            "secret": "{env.MYTHIC_SECRET}"
            		}
		}
	}
}

or with the Caddyfile:

{
	# Use the ACME DNS challenge with Mythic Beasts
	acme_dns mythicbeasts {
		# key_id "YOUR_KEY_ID"
		# secret "YOUR_SECRET"
		# Or better, use environment variables:
		key_id {$MYTHIC_KEY_ID}
		secret {$MYTHIC_SECRET}
	}
}

# Replace 'example.com' with a domain you own and want to manage via Mythic Beasts
example.com {
	respond "Hello, Caddy with Mythic Beasts!"
}

To run the Caddyfile test, set the environment variables and run:

export MYTHIC_KEY_ID="your-key-id"
export MYTHIC_SECRET="your-secret"
./caddy run --config caddyfile

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{ *mythicbeasts.Provider }

Provider lets Caddy read and manipulate DNS records hosted by this DNS provider.

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

Provision sets up the module. Implements caddy.Provisioner.

func (*Provider) UnmarshalCaddyfile

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

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

mythicbeasts {
    key_id <string>
    secret <string>
}

func (*Provider) Validate added in v1.0.3

func (p *Provider) Validate() error

Validate implements caddy.Validator.

Jump to

Keyboard shortcuts

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