mirror of
https://github.com/go-acme/lego.git
synced 2024-12-26 11:18:00 +02:00
digitalocean: configurable base URL (#1687)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
d5a18dc2d5
commit
ca6784a824
@ -561,6 +561,7 @@ func displayDNSHelp(name string) error {
|
|||||||
ew.writeln()
|
ew.writeln()
|
||||||
|
|
||||||
ew.writeln(`Additional Configuration:`)
|
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_HTTP_TIMEOUT": API request timeout`)
|
||||||
ew.writeln(` - "DO_POLLING_INTERVAL": Time between DNS propagation check`)
|
ew.writeln(` - "DO_POLLING_INTERVAL": Time between DNS propagation check`)
|
||||||
ew.writeln(` - "DO_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
|
ew.writeln(` - "DO_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
|
||||||
|
@ -47,6 +47,7 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
|
|||||||
|
|
||||||
| Environment Variable Name | Description |
|
| Environment Variable Name | Description |
|
||||||
|--------------------------------|-------------|
|
|--------------------------------|-------------|
|
||||||
|
| `DO_API_URL` | The URL of the API |
|
||||||
| `DO_HTTP_TIMEOUT` | API request timeout |
|
| `DO_HTTP_TIMEOUT` | API request timeout |
|
||||||
| `DO_POLLING_INTERVAL` | Time between DNS propagation check |
|
| `DO_POLLING_INTERVAL` | Time between DNS propagation check |
|
||||||
| `DO_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation |
|
| `DO_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation |
|
||||||
|
@ -6,7 +6,7 @@ slug: yandex
|
|||||||
dnsprovider:
|
dnsprovider:
|
||||||
since: "v3.7.0"
|
since: "v3.7.0"
|
||||||
code: "yandex"
|
code: "yandex"
|
||||||
url: "https://yandex.com/"
|
url: "https://pdd.yandex.com"
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
||||||
@ -14,7 +14,7 @@ dnsprovider:
|
|||||||
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
||||||
|
|
||||||
|
|
||||||
Configuration for [Yandex PDD](https://yandex.com/).
|
Configuration for [Yandex PDD](https://pdd.yandex.com).
|
||||||
|
|
||||||
|
|
||||||
<!--more-->
|
<!--more-->
|
||||||
@ -60,7 +60,7 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
|
|||||||
|
|
||||||
## More information
|
## 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)
|
||||||
|
|
||||||
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
||||||
<!-- providers/dns/yandex/yandex.toml -->
|
<!-- providers/dns/yandex/yandex.toml -->
|
||||||
|
@ -17,6 +17,7 @@ const (
|
|||||||
envNamespace = "DO_"
|
envNamespace = "DO_"
|
||||||
|
|
||||||
EnvAuthToken = envNamespace + "AUTH_TOKEN"
|
EnvAuthToken = envNamespace + "AUTH_TOKEN"
|
||||||
|
EnvAPIUrl = envNamespace + "API_URL"
|
||||||
|
|
||||||
EnvTTL = envNamespace + "TTL"
|
EnvTTL = envNamespace + "TTL"
|
||||||
EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT"
|
EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT"
|
||||||
@ -37,7 +38,7 @@ type Config struct {
|
|||||||
// NewDefaultConfig returns a default configuration for the DNSProvider.
|
// NewDefaultConfig returns a default configuration for the DNSProvider.
|
||||||
func NewDefaultConfig() *Config {
|
func NewDefaultConfig() *Config {
|
||||||
return &Config{
|
return &Config{
|
||||||
BaseURL: defaultBaseURL,
|
BaseURL: env.GetOrDefaultString(EnvAPIUrl, defaultBaseURL),
|
||||||
TTL: env.GetOrDefaultInt(EnvTTL, 30),
|
TTL: env.GetOrDefaultInt(EnvTTL, 30),
|
||||||
PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, 60*time.Second),
|
PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, 60*time.Second),
|
||||||
PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, 5*time.Second),
|
PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, 5*time.Second),
|
||||||
|
@ -13,6 +13,7 @@ lego --email you@example.com --dns digitalocean --domains my.example.org run
|
|||||||
[Configuration.Credentials]
|
[Configuration.Credentials]
|
||||||
DO_AUTH_TOKEN = "Authentication token"
|
DO_AUTH_TOKEN = "Authentication token"
|
||||||
[Configuration.Additional]
|
[Configuration.Additional]
|
||||||
|
DO_API_URL = "The URL of the API"
|
||||||
DO_POLLING_INTERVAL = "Time between DNS propagation check"
|
DO_POLLING_INTERVAL = "Time between DNS propagation check"
|
||||||
DO_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
|
DO_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
|
||||||
DO_TTL = "The TTL of the TXT record used for the DNS challenge"
|
DO_TTL = "The TTL of the TXT record used for the DNS challenge"
|
||||||
|
Loading…
Reference in New Issue
Block a user