selectelv2

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 3 Imported by: 0

README

Selectel DNS v2 module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with Selectel DNS v2 API.

Caddy module name

dns.providers.selectelv2

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": "selectelv2",
        "user": "SELECTEL_USER", // see link "Selectel Service user" below
        "password": "SELECTEL_PASSWORD",
        "account_id": "SELECTEL_ACCOUNT_ID", // your main Selectel account id, like "123456"
        "project_name": "SELECTEL_PROJECT_NAME" // a project in which the service user is an administrator
      }
    }
  }
}

or with the Caddyfile:

# globally
{
	acme_dns selectelv2 {
		user <SELECTEL_USER>
		password <SELECTEL_PASSWORD>
		account_id <SELECTEL_ACCOUNT_ID>
		project_name <SELECTEL_PROJECT_NAME>
	}
}
# one site
tls {
	dns selectelv2 {
		user <SELECTEL_USER>
		password <SELECTEL_PASSWORD>
		account_id <SELECTEL_ACCOUNT_ID>
		project_name <SELECTEL_PROJECT_NAME>
	}
}

Selectel Service user management

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{ *selectelv2.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

Jump to

Keyboard shortcuts

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