diff options
Diffstat (limited to 'modules/caddytls')
-rw-r--r-- | modules/caddytls/acmeissuer.go | 1 | ||||
-rw-r--r-- | modules/caddytls/automation.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/caddytls/acmeissuer.go b/modules/caddytls/acmeissuer.go index 133d007..8c52625 100644 --- a/modules/caddytls/acmeissuer.go +++ b/modules/caddytls/acmeissuer.go @@ -153,6 +153,7 @@ func (m *ACMEIssuer) makeIssuerTemplate() (certmagic.ACMEManager, error) { template.AltTLSALPNPort = m.Challenges.TLSALPN.AlternatePort } template.DNSProvider = m.Challenges.DNS + template.ListenHost = m.Challenges.BindHost } return template, nil diff --git a/modules/caddytls/automation.go b/modules/caddytls/automation.go index 24a21cb..22cf20b 100644 --- a/modules/caddytls/automation.go +++ b/modules/caddytls/automation.go @@ -239,6 +239,10 @@ type ChallengesConfig struct { // to Caddy from an external server. DNSRaw json.RawMessage `json:"dns,omitempty" caddy:"namespace=tls.dns inline_key=provider"` + // Optionally customize the host to which a listener + // is bound if required for solving a challenge. + BindHost string `json:"bind_host,omitempty"` + DNS challenge.Provider `json:"-"` } |