mirror of
https://github.com/go-acme/lego.git
synced 2025-07-04 06:30:29 +02:00
OracleCloud: ttl config and timeout (#812)
This commit is contained in:
@ -90,7 +90,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
|
|||||||
Domain: common.String(dns01.UnFqdn(fqdn)),
|
Domain: common.String(dns01.UnFqdn(fqdn)),
|
||||||
Rdata: common.String(value),
|
Rdata: common.String(value),
|
||||||
Rtype: common.String("TXT"),
|
Rtype: common.String("TXT"),
|
||||||
Ttl: common.Int(30),
|
Ttl: common.Int(d.config.TTL),
|
||||||
IsProtected: common.Bool(false),
|
IsProtected: common.Bool(false),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,3 +167,9 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Timeout returns the timeout and interval to use when checking for DNS propagation.
|
||||||
|
// Adjusting here to cope with spikes in propagation times.
|
||||||
|
func (d *DNSProvider) Timeout() (timeout, interval time.Duration) {
|
||||||
|
return d.config.PropagationTimeout, d.config.PollingInterval
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user