mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-28 06:56:06 +00:00
Update inline TLS verification docs for healthcheck and link checks
This commit is contained in:
@@ -41,7 +41,8 @@ settings to determine the HTTP bind interface & port.
|
||||
IdleConnTimeout: time.Second * 5,
|
||||
ExpectContinueTimeout: time.Second * 5,
|
||||
TLSHandshakeTimeout: time.Second * 5,
|
||||
// do not verify TLS in case this instance is using HTTPS
|
||||
// do not verify TLS if this instance is using HTTPS as we connect using IP
|
||||
// so won't be the same as the cert
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // #nosec
|
||||
}
|
||||
client := &http.Client{Transport: conf}
|
||||
|
||||
@@ -81,6 +81,7 @@ func doHead(link string, followRedirects bool) (int, error) {
|
||||
}
|
||||
|
||||
if config.AllowUntrustedTLS {
|
||||
// user has explicitly allowed untrusted TLS, so we will not verify it for link checks
|
||||
tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} // #nosec
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user