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