forked from TrueCloudLab/lego
Adjust cloudflare provider timeout values to better cope with spikes in propagation time. Fix #167
This commit is contained in:
parent
a7ce32d9be
commit
af94ecc8b4
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ func NewDNSProviderCredentials(email, key string) (*DNSProvider, error) {
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Timeout returns the timeout and interval to use when checking for DNS
|
||||||
|
// propagation. Adjusting here to cope with spikes in propagation times.
|
||||||
|
func (c *DNSProvider) Timeout() (timeout, interval time.Duration) {
|
||||||
|
return 120 * time.Second, 2 * time.Second
|
||||||
|
}
|
||||||
|
|
||||||
// Present creates a TXT record to fulfil the dns-01 challenge
|
// Present creates a TXT record to fulfil the dns-01 challenge
|
||||||
func (c *DNSProvider) Present(domain, token, keyAuth string) error {
|
func (c *DNSProvider) Present(domain, token, keyAuth string) error {
|
||||||
fqdn, value, _ := acme.DNS01Record(domain, keyAuth)
|
fqdn, value, _ := acme.DNS01Record(domain, keyAuth)
|
||||||
|
|
Loading…
Reference in a new issue