ipv64: remove unused option (#2022)
This commit is contained in:
parent
d0aa6b3c0d
commit
b523518108
5 changed files with 7 additions and 9 deletions
|
@ -1071,7 +1071,8 @@ func displayDNSHelp(w io.Writer, name string) error {
|
||||||
ew.writeln()
|
ew.writeln()
|
||||||
|
|
||||||
ew.writeln(`Credentials:`)
|
ew.writeln(`Credentials:`)
|
||||||
ew.writeln(` - "GANDIV5_API_KEY": API key`)
|
ew.writeln(` - "GANDIV5_API_KEY": API key (Deprecated)`)
|
||||||
|
ew.writeln(` - "GANDIV5_PERSONAL_ACCESS_TOKEN": Personal Access Token`)
|
||||||
ew.writeln()
|
ew.writeln()
|
||||||
|
|
||||||
ew.writeln(`Additional Configuration:`)
|
ew.writeln(`Additional Configuration:`)
|
||||||
|
@ -1512,7 +1513,6 @@ func displayDNSHelp(w io.Writer, name string) error {
|
||||||
ew.writeln(` - "IPV64_HTTP_TIMEOUT": API request timeout`)
|
ew.writeln(` - "IPV64_HTTP_TIMEOUT": API request timeout`)
|
||||||
ew.writeln(` - "IPV64_POLLING_INTERVAL": Time between DNS propagation check`)
|
ew.writeln(` - "IPV64_POLLING_INTERVAL": Time between DNS propagation check`)
|
||||||
ew.writeln(` - "IPV64_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
|
ew.writeln(` - "IPV64_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
|
||||||
ew.writeln(` - "IPV64_SEQUENCE_INTERVAL": Time between sequential requests`)
|
|
||||||
ew.writeln(` - "IPV64_TTL": The TTL of the TXT record used for the DNS challenge`)
|
ew.writeln(` - "IPV64_TTL": The TTL of the TXT record used for the DNS challenge`)
|
||||||
|
|
||||||
ew.writeln()
|
ew.writeln()
|
||||||
|
|
|
@ -26,7 +26,7 @@ Configuration for [Gandi Live DNS (v5)](https://www.gandi.net).
|
||||||
Here is an example bash command using the Gandi Live DNS (v5) provider:
|
Here is an example bash command using the Gandi Live DNS (v5) provider:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
GANDIV5_API_KEY=abcdefghijklmnopqrstuvwx \
|
GANDIV5_PERSONAL_ACCESS_TOKEN=abcdefghijklmnopqrstuvwx \
|
||||||
lego --email you@example.com --dns gandiv5 --domains my.example.org run
|
lego --email you@example.com --dns gandiv5 --domains my.example.org run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -37,7 +37,8 @@ lego --email you@example.com --dns gandiv5 --domains my.example.org run
|
||||||
|
|
||||||
| Environment Variable Name | Description |
|
| Environment Variable Name | Description |
|
||||||
|-----------------------|-------------|
|
|-----------------------|-------------|
|
||||||
| `GANDIV5_API_KEY` | API key |
|
| `GANDIV5_API_KEY` | API key (Deprecated) |
|
||||||
|
| `GANDIV5_PERSONAL_ACCESS_TOKEN` | Personal Access Token |
|
||||||
|
|
||||||
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
|
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
|
||||||
More information [here]({{< ref "dns#configuration-and-credentials" >}}).
|
More information [here]({{< ref "dns#configuration-and-credentials" >}}).
|
||||||
|
|
|
@ -50,7 +50,6 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
|
||||||
| `IPV64_HTTP_TIMEOUT` | API request timeout |
|
| `IPV64_HTTP_TIMEOUT` | API request timeout |
|
||||||
| `IPV64_POLLING_INTERVAL` | Time between DNS propagation check |
|
| `IPV64_POLLING_INTERVAL` | Time between DNS propagation check |
|
||||||
| `IPV64_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation |
|
| `IPV64_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation |
|
||||||
| `IPV64_SEQUENCE_INTERVAL` | Time between sequential requests |
|
|
||||||
| `IPV64_TTL` | The TTL of the TXT record used for the DNS challenge |
|
| `IPV64_TTL` | The TTL of the TXT record used for the DNS challenge |
|
||||||
|
|
||||||
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
|
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
|
||||||
|
|
|
@ -24,7 +24,7 @@ const (
|
||||||
EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT"
|
EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT"
|
||||||
EnvPollingInterval = envNamespace + "POLLING_INTERVAL"
|
EnvPollingInterval = envNamespace + "POLLING_INTERVAL"
|
||||||
EnvHTTPTimeout = envNamespace + "HTTP_TIMEOUT"
|
EnvHTTPTimeout = envNamespace + "HTTP_TIMEOUT"
|
||||||
EnvSequenceInterval = envNamespace + "SEQUENCE_INTERVAL"
|
EnvSequenceInterval = envNamespace + "SEQUENCE_INTERVAL" // Deprecated: unused, will be removed in v5.
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config is used to configure the creation of the DNSProvider.
|
// Config is used to configure the creation of the DNSProvider.
|
||||||
|
@ -32,8 +32,8 @@ type Config struct {
|
||||||
APIKey string
|
APIKey string
|
||||||
PropagationTimeout time.Duration
|
PropagationTimeout time.Duration
|
||||||
PollingInterval time.Duration
|
PollingInterval time.Duration
|
||||||
SequenceInterval time.Duration
|
|
||||||
HTTPClient *http.Client
|
HTTPClient *http.Client
|
||||||
|
SequenceInterval time.Duration // Deprecated: unused, will be removed in v5.
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDefaultConfig returns a default configuration for the DNSProvider.
|
// NewDefaultConfig returns a default configuration for the DNSProvider.
|
||||||
|
@ -41,7 +41,6 @@ func NewDefaultConfig() *Config {
|
||||||
return &Config{
|
return &Config{
|
||||||
PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, dns01.DefaultPropagationTimeout),
|
PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, dns01.DefaultPropagationTimeout),
|
||||||
PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, dns01.DefaultPollingInterval),
|
PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, dns01.DefaultPollingInterval),
|
||||||
SequenceInterval: env.GetOrDefaultSecond(EnvSequenceInterval, dns01.DefaultPropagationTimeout),
|
|
||||||
HTTPClient: &http.Client{
|
HTTPClient: &http.Client{
|
||||||
Timeout: env.GetOrDefaultSecond(EnvHTTPTimeout, 30*time.Second),
|
Timeout: env.GetOrDefaultSecond(EnvHTTPTimeout, 30*time.Second),
|
||||||
},
|
},
|
||||||
|
|
|
@ -17,7 +17,6 @@ lego --email you@example.com --dns ipv64 --domains my.example.org run
|
||||||
IPV64_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
|
IPV64_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
|
||||||
IPV64_TTL = "The TTL of the TXT record used for the DNS challenge"
|
IPV64_TTL = "The TTL of the TXT record used for the DNS challenge"
|
||||||
IPV64_HTTP_TIMEOUT = "API request timeout"
|
IPV64_HTTP_TIMEOUT = "API request timeout"
|
||||||
IPV64_SEQUENCE_INTERVAL = "Time between sequential requests"
|
|
||||||
|
|
||||||
[Links]
|
[Links]
|
||||||
API = "https://ipv64.net/dyndns_updater_api"
|
API = "https://ipv64.net/dyndns_updater_api"
|
||||||
|
|
Loading…
Reference in a new issue