resolve linter issues

This commit is contained in:
David Christofas
2021-02-25 10:48:40 +01:00
parent 52f13fe778
commit 0fd7580301
4 changed files with 8 additions and 3 deletions

View File

@@ -286,7 +286,7 @@ func loadMiddlewares(ctx context.Context, l log.Logger, cfg *config.Config) alic
var oidcHTTPClient = &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: cfg.OIDC.Insecure,
InsecureSkipVerify: cfg.OIDC.Insecure, //nolint:gosec
},
DisableKeepAlives: true,
},

View File

@@ -54,7 +54,7 @@ func NewMultiHostReverseProxy(opts ...Option) *MultiHostReverseProxy {
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: options.Config.InsecureBackends,
InsecureSkipVerify: options.Config.InsecureBackends, //nolint:gosec
},
}

View File

@@ -44,7 +44,7 @@ func Server(opts ...Option) (svc.Service, error) {
os.Exit(1)
}
tlsConfig = &tls.Config{Certificates: []tls.Certificate{cer}}
tlsConfig = &tls.Config{MinVersion: tls.VersionTLS12, Certificates: []tls.Certificate{cer}}
}
chain := options.Middlewares.Then(options.Handler)