Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
caddytls: Fix namespace tls.dns -> dns.providers
Coulda sworn I did this already but I think I messed up my git commands
Matthew Holt committed
May 2, 2020 at 16:28 UTC
86a4f2c9f4e7f85f2d59e2f1713aacf98ab8bc1a
2 files changed
+2
-2
caddyconfig/httpcaddyfile/tlsapp.go
+1
-1
@@ -383,7 +383,7 @@ func newBaseAutomationPolicy(options map[string]interface{}, warnings []caddycon
383
}
384
if acmeDNS != nil {
385
provName := acmeDNS.(string)
386
- dnsProvModule, err := caddy.GetModule("tls.dns." + provName)
386
+ dnsProvModule, err := caddy.GetModule("dns.providers." + provName)
387
if err != nil {
388
return nil, fmt.Errorf("getting DNS provider module named '%s': %v", provName, err)
389
}
modules/caddytls/automation.go
+1
-1
@@ -287,7 +287,7 @@ type TLSALPNChallengeConfig struct {
287
type DNSChallengeConfig struct {
288
// The DNS provider module to use which will manage
289
// the DNS records relevant to the ACME challenge.
290
- ProviderRaw json.RawMessage `json:"provider,omitempty" caddy:"namespace=tls.dns inline_key=name"`
290
+ ProviderRaw json.RawMessage `json:"provider,omitempty" caddy:"namespace=dns.providers inline_key=name"`
291
292
// The TTL of the TXT record used for the DNS challenge.
293
TTL caddy.Duration `json:"ttl,omitempty"`