mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 14:13:48 +03:00
caddytls: Support custom bind host for challenges (#3232)
This commit is contained in:
parent
81cdebf648
commit
6a32daa225
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:"-"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue