conohav3

package module
v0.1.0 Latest Latest
Warning

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

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

ConoHa module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with ConoHa VPS Ver.3.0.

Caddy module name

dns.providers.conoha

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": "conoha",
        "api_tenant_id": "YOUR_API_TENANT_ID",
        "api_user_id": "YOUR_API_USER_ID",
        "api_password": "YOUR_API_PASSWORD",
        "region": "YOUR_REGION"
      }
    }
  }
}

or with the Caddyfile:

# globally
{
	acme_dns conoha {
		api_tenant_id {env.API_TENANT_ID}
		api_user_id {env.API_USER_ID}
		api_password {env.API_PASSWORD}
		region {env.REGION} # Optional.
	}
}
# one site
tls {
	dns conoha {
		api_tenant_id {env.API_TENANT_ID}
		api_user_id {env.API_USER_ID}
		api_password {env.API_PASSWORD}
		region {env.REGION} # Optional.
	}
}

You can replace {env.API_TENANT_ID},{env.API_USER_ID}, {env.API_PASSWORD} 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 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 (Google IPv6 DNS and Cloudflare DNS).
resolvers 2001:4860:4860::8888 1.1.1.1

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

conoha {
    api_tenant_id <api_tenant_id>
    api_user_id <api_user_id>
    api_password <api_password>
    region <region> // Optional.
}

Jump to

Keyboard shortcuts

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