Add global InsecureSkipVerify option to disable certificate checking
Signed-off-by: Stuart Clark <stuart.clark@Jahingo.com>
This commit is contained in:
parent
7abe68fac1
commit
4882519c0f
2 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
fmtlog "log"
|
||||
"net/http"
|
||||
"crypto/tls"
|
||||
"os"
|
||||
"reflect"
|
||||
"runtime"
|
||||
|
@ -173,6 +174,9 @@ func run(traefikConfiguration *TraefikConfiguration) {
|
|||
globalConfiguration := traefikConfiguration.GlobalConfiguration
|
||||
|
||||
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = globalConfiguration.MaxIdleConnsPerHost
|
||||
if globalConfiguration.InsecureSkipVerify {
|
||||
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
||||
}
|
||||
loggerMiddleware := middlewares.NewLogger(globalConfiguration.AccessLogsFile)
|
||||
defer loggerMiddleware.Close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue