Increase propagation and polling timeout for dns changes

This commit is contained in:
Melon 2023-07-16 13:38:01 +01:00
parent cf047a9320
commit f680332340
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -379,13 +379,18 @@ func (s *Service) setupLegoClient(localData *localCertData) (*lego.Client, error
func (s *Service) getDnsProvider(name, token string) (challenge.Provider, error) { func (s *Service) getDnsProvider(name, token string) (challenge.Provider, error) {
switch name { switch name {
case "duckdns": case "duckdns":
config := duckdns.NewDefaultConfig() return duckdns.NewDNSProviderConfig(&duckdns.Config{
config.Token = token Token: token,
return duckdns.NewDNSProviderConfig(config) PropagationTimeout: 15 * time.Minute,
PollingInterval: 2 * time.Minute,
})
case "namesilo": case "namesilo":
config := namesilo.NewDefaultConfig() return namesilo.NewDNSProviderConfig(&namesilo.Config{
config.APIKey = token APIKey: token,
return namesilo.NewDNSProviderConfig(config) PropagationTimeout: 2 * time.Hour,
PollingInterval: 15 * time.Minute,
TTL: 3600,
})
default: default:
return nil, ErrUnsupportedDNSProvider return nil, ErrUnsupportedDNSProvider
} }