Skip to content

Commit

Permalink
fix: acme and corporate proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and traefiker committed Jan 23, 2018
1 parent 4e07d92 commit 6c1cd48
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions acme/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,20 @@ type Domain struct {
}

func (a *ACME) init() error {
// FIXME temporary fix, waiting for https://github.com/xenolf/lego/pull/478
acme.HTTPClient = http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
}).Dial,
TLSHandshakeTimeout: 15 * time.Second,
ResponseHeaderTimeout: 15 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
},
}

if a.ACMELogging {
acme.Logger = fmtlog.New(os.Stderr, "legolog: ", fmtlog.LstdFlags)
} else {
Expand Down

0 comments on commit 6c1cd48

Please sign in to comment.