diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-04-22 18:09:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 16:09:11 -0600 |
commit | 77a77c0219d389717ba3b8f8e28bad3462fab655 (patch) | |
tree | 75f13fbe5bf044962396449989a02d3451b4b1c3 /modules/caddytls/automation.go | |
parent | db62942d634a22cee5e598a3062bc1405895a0c2 (diff) |
caddytls: Add `propagation_delay`, support `propagation_timeout -1` (#4723)
Diffstat (limited to 'modules/caddytls/automation.go')
-rw-r--r-- | modules/caddytls/automation.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/caddytls/automation.go b/modules/caddytls/automation.go index 26884bc..197c409 100644 --- a/modules/caddytls/automation.go +++ b/modules/caddytls/automation.go @@ -363,7 +363,13 @@ type DNSChallengeConfig struct { // The TTL of the TXT record used for the DNS challenge. TTL caddy.Duration `json:"ttl,omitempty"` - // How long to wait for DNS record to propagate. + // How long to wait before starting propagation checks. + // Default: 0 (no wait). + PropagationDelay caddy.Duration `json:"propagation_delay,omitempty"` + + // Maximum time to wait for temporary DNS record to appear. + // Set to -1 to disable propagation checks. + // Default: 2 minutes. PropagationTimeout caddy.Duration `json:"propagation_timeout,omitempty"` // Custom DNS resolvers to prefer over system/built-in defaults. |