Package httpreq implements a DNS provider for solving the DNS-01 challenge through a HTTP server.



This section is empty.


View Source
var UserAgent string


This section is empty.


type Config

type Config struct {
	Endpoint           *url.URL
	Username           string
	Password           string
	TargetA            string
	TargetAAAA         string
	TargetCNAME        string
	TargetMX           string
	PropagationTimeout time.Duration
	PollingInterval    time.Duration
	HTTPClient         *http.Client

Config is used to configure the creation of the Provider

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig returns a default configuration for the Provider

type Provider

type Provider struct {
	// contains filtered or unexported fields


Provider describes a provider for acme-proxy

func NewProvider

func NewProvider(ctx *cli.Context) (*Provider, error)

NewProvider returns a Provider instance.

func NewProviderConfig

func NewProviderConfig(config *Config) (*Provider, error)

NewProviderConfig return a Provider .

func (*Provider) CleanUp

func (d *Provider) CleanUp(domain, token, keyAuth string) error

CleanUp removes the TXT record matching the specified parameters

func (*Provider) GetTargetA

func (d *Provider) GetTargetA() string

func (*Provider) GetTargetAAAA

func (d *Provider) GetTargetAAAA() string

func (*Provider) GetTargetCNAME

func (d *Provider) GetTargetCNAME() string

func (*Provider) GetTargetMX

func (d *Provider) GetTargetMX() string

func (*Provider) Present

func (d *Provider) Present(domain, token, keyAuth string) error

Present creates a TXT record to fulfill the dns-01 challenge

func (*Provider) Timeout

func (d *Provider) Timeout() (timeout, interval time.Duration)

Timeout returns the timeout and interval to use when checking for DNS propagation. Adjusting here to cope with spikes in propagation times.

func (*Provider) UpdateDNS

func (d *Provider) UpdateDNS(domain string) error

Just update DNS target records