Adjust cloudflare provider timeout values to better cope with spikes in propagation time. Fix #167

This commit is contained in:
xenolf 2016-03-23 23:55:15 +01:00
parent a7ce32d9be
commit af94ecc8b4

View file

@ -47,6 +47,12 @@ func NewDNSProviderCredentials(email, key string) (*DNSProvider, error) {
}, 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
func (c *DNSProvider) Present(domain, token, keyAuth string) error {
fqdn, value, _ := acme.DNS01Record(domain, keyAuth)