feat(acme): support acme listen host

support acme listen host

ref #978

Signed-off-by: kovacs <mritd@linux.com>
This commit is contained in:
kovacs 2024-03-14 11:01:36 +08:00
parent 55beaff012
commit 57e6e47f19
No known key found for this signature in database
GPG key ID: 150E1851F767CDDD

View file

@ -83,6 +83,7 @@ type serverConfigACME struct {
CA string `mapstructure:"ca"`
DisableHTTP bool `mapstructure:"disableHTTP"`
DisableTLSALPN bool `mapstructure:"disableTLSALPN"`
ListenHost string `mapstructure:"listenHost"`
AltHTTPPort int `mapstructure:"altHTTPPort"`
AltTLSALPNPort int `mapstructure:"altTLSALPNPort"`
Dir string `mapstructure:"dir"`
@ -280,6 +281,7 @@ func (c *serverConfig) fillTLSConfig(hyConfig *server.Config) error {
Agreed: true,
DisableHTTPChallenge: c.ACME.DisableHTTP,
DisableTLSALPNChallenge: c.ACME.DisableTLSALPN,
ListenHost: c.ACME.ListenHost,
AltHTTPPort: c.ACME.AltHTTPPort,
AltTLSALPNPort: c.ACME.AltTLSALPNPort,
Logger: logger,