mirror of
https://github.com/1f349/orchid.git
synced 2024-12-22 08:04:10 +00:00
Increase propagation and polling timeout for dns changes
This commit is contained in:
parent
cf047a9320
commit
f680332340
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user