mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
webhook: Add support of custom CAs (#4000)
This commit is contained in:
parent
e2aba9196f
commit
fbe8b3259d
@ -17,6 +17,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
@ -81,6 +82,7 @@ func newWebhookNotify(accountID string) (*logrus.Logger, error) {
|
||||
// Configure aggressive timeouts for client posts.
|
||||
Client: &http.Client{
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: &tls.Config{RootCAs: globalRootCAs},
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 5 * time.Second,
|
||||
KeepAlive: 5 * time.Second,
|
||||
|
Loading…
x
Reference in New Issue
Block a user