diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-05-02 16:28:10 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-05-02 16:28:10 -0600 |
commit | 86a4f2c9f4e7f85f2d59e2f1713aacf98ab8bc1a (patch) | |
tree | 3c31ec3338080096f9fd064edfdb21398857c954 | |
parent | a507a5bbc72b70cba4e252b8ec7cbffdc09b4a86 (diff) |
caddytls: Fix namespace tls.dns -> dns.providers
Coulda sworn I did this already but I think I messed up my git commands
-rw-r--r-- | caddyconfig/httpcaddyfile/tlsapp.go | 2 | ||||
-rw-r--r-- | modules/caddytls/automation.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/caddyconfig/httpcaddyfile/tlsapp.go b/caddyconfig/httpcaddyfile/tlsapp.go index 88c1260..80f39af 100644 --- a/caddyconfig/httpcaddyfile/tlsapp.go +++ b/caddyconfig/httpcaddyfile/tlsapp.go @@ -383,7 +383,7 @@ func newBaseAutomationPolicy(options map[string]interface{}, warnings []caddycon } if acmeDNS != nil { provName := acmeDNS.(string) - dnsProvModule, err := caddy.GetModule("tls.dns." + provName) + dnsProvModule, err := caddy.GetModule("dns.providers." + provName) if err != nil { return nil, fmt.Errorf("getting DNS provider module named '%s': %v", provName, err) } diff --git a/modules/caddytls/automation.go b/modules/caddytls/automation.go index 5d96c4f..bc095ff 100644 --- a/modules/caddytls/automation.go +++ b/modules/caddytls/automation.go @@ -287,7 +287,7 @@ type TLSALPNChallengeConfig struct { type DNSChallengeConfig struct { // The DNS provider module to use which will manage // the DNS records relevant to the ACME challenge. - ProviderRaw json.RawMessage `json:"provider,omitempty" caddy:"namespace=tls.dns inline_key=name"` + ProviderRaw json.RawMessage `json:"provider,omitempty" caddy:"namespace=dns.providers inline_key=name"` // The TTL of the TXT record used for the DNS challenge. TTL caddy.Duration `json:"ttl,omitempty"` |