Browse Source
			
			
			caddytls: Fix namespace tls.dns -> dns.providers
			
				Coulda sworn I did this already but I think I messed up my git commands
			
			
				master
			
			
		 
		
			
				
					
						 Matthew Holt
					
					6 years ago
						Matthew Holt
					
					6 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 2A349DD577D586A5
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
2 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					caddyconfig/httpcaddyfile/tlsapp.go
				
- 
					
					
					 
					modules/caddytls/automation.go
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -383,7 +383,7 @@ func newBaseAutomationPolicy(options map[string]interface{}, warnings []caddycon | 
			
		
	
		
		
			
				
					|  |  | 		} |  |  | 		} | 
			
		
	
		
		
			
				
					|  |  | 		if acmeDNS != nil { |  |  | 		if acmeDNS != nil { | 
			
		
	
		
		
			
				
					|  |  | 			provName := acmeDNS.(string) |  |  | 			provName := acmeDNS.(string) | 
			
		
	
		
		
			
				
					
					|  |  | 			dnsProvModule, err := caddy.GetModule("tls.dns." + provName) |  |  | 			dnsProvModule, err := caddy.GetModule("dns.providers." + provName) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 			if err != nil { |  |  | 			if err != nil { | 
			
		
	
		
		
			
				
					|  |  | 				return nil, fmt.Errorf("getting DNS provider module named '%s': %v", provName, err) |  |  | 				return nil, fmt.Errorf("getting DNS provider module named '%s': %v", provName, err) | 
			
		
	
		
		
			
				
					|  |  | 			} |  |  | 			} | 
			
		
	
	
		
		
			
				
					|  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -287,7 +287,7 @@ type TLSALPNChallengeConfig struct { | 
			
		
	
		
		
			
				
					|  |  | type DNSChallengeConfig struct { |  |  | type DNSChallengeConfig struct { | 
			
		
	
		
		
			
				
					|  |  | 	// The DNS provider module to use which will manage
 |  |  | 	// The DNS provider module to use which will manage
 | 
			
		
	
		
		
			
				
					|  |  | 	// the DNS records relevant to the ACME challenge.
 |  |  | 	// 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.
 |  |  | 	// The TTL of the TXT record used for the DNS challenge.
 | 
			
		
	
		
		
			
				
					|  |  | 	TTL caddy.Duration `json:"ttl,omitempty"` |  |  | 	TTL caddy.Duration `json:"ttl,omitempty"` | 
			
		
	
	
		
		
			
				
					|  | 
 |