diff --git a/cmd/zz_gen_cmd_dnshelp.go b/cmd/zz_gen_cmd_dnshelp.go index 0e7cf810..f9c67f1d 100644 --- a/cmd/zz_gen_cmd_dnshelp.go +++ b/cmd/zz_gen_cmd_dnshelp.go @@ -561,6 +561,7 @@ func displayDNSHelp(name string) error { ew.writeln() ew.writeln(`Additional Configuration:`) + ew.writeln(` - "DO_API_URL": The URL of the API`) ew.writeln(` - "DO_HTTP_TIMEOUT": API request timeout`) ew.writeln(` - "DO_POLLING_INTERVAL": Time between DNS propagation check`) ew.writeln(` - "DO_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`) diff --git a/docs/content/dns/zz_gen_digitalocean.md b/docs/content/dns/zz_gen_digitalocean.md index 5b5698be..8e86adde 100644 --- a/docs/content/dns/zz_gen_digitalocean.md +++ b/docs/content/dns/zz_gen_digitalocean.md @@ -47,6 +47,7 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}). | Environment Variable Name | Description | |--------------------------------|-------------| +| `DO_API_URL` | The URL of the API | | `DO_HTTP_TIMEOUT` | API request timeout | | `DO_POLLING_INTERVAL` | Time between DNS propagation check | | `DO_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation | diff --git a/docs/content/dns/zz_gen_yandex.md b/docs/content/dns/zz_gen_yandex.md index b3fc5570..0be85776 100644 --- a/docs/content/dns/zz_gen_yandex.md +++ b/docs/content/dns/zz_gen_yandex.md @@ -6,7 +6,7 @@ slug: yandex dnsprovider: since: "v3.7.0" code: "yandex" - url: "https://yandex.com/" + url: "https://pdd.yandex.com" --- @@ -14,7 +14,7 @@ dnsprovider: -Configuration for [Yandex PDD](https://yandex.com/). +Configuration for [Yandex PDD](https://pdd.yandex.com). @@ -60,7 +60,7 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}). ## More information -- [API documentation](https://tech.yandex.com/domain/doc/concepts/api-dns-docpage/) +- [API documentation](https://yandex.com/dev/domain/doc/concepts/api-dns.html) diff --git a/providers/dns/digitalocean/digitalocean.go b/providers/dns/digitalocean/digitalocean.go index 3a230d4c..814d16b6 100644 --- a/providers/dns/digitalocean/digitalocean.go +++ b/providers/dns/digitalocean/digitalocean.go @@ -17,6 +17,7 @@ const ( envNamespace = "DO_" EnvAuthToken = envNamespace + "AUTH_TOKEN" + EnvAPIUrl = envNamespace + "API_URL" EnvTTL = envNamespace + "TTL" EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT" @@ -37,7 +38,7 @@ type Config struct { // NewDefaultConfig returns a default configuration for the DNSProvider. func NewDefaultConfig() *Config { return &Config{ - BaseURL: defaultBaseURL, + BaseURL: env.GetOrDefaultString(EnvAPIUrl, defaultBaseURL), TTL: env.GetOrDefaultInt(EnvTTL, 30), PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, 60*time.Second), PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, 5*time.Second), diff --git a/providers/dns/digitalocean/digitalocean.toml b/providers/dns/digitalocean/digitalocean.toml index 47be48bf..11b7fa5d 100644 --- a/providers/dns/digitalocean/digitalocean.toml +++ b/providers/dns/digitalocean/digitalocean.toml @@ -13,6 +13,7 @@ lego --email you@example.com --dns digitalocean --domains my.example.org run [Configuration.Credentials] DO_AUTH_TOKEN = "Authentication token" [Configuration.Additional] + DO_API_URL = "The URL of the API" DO_POLLING_INTERVAL = "Time between DNS propagation check" DO_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation" DO_TTL = "The TTL of the TXT record used for the DNS challenge"