change to InsecureBackends flag

This commit is contained in:
Willy Kloucek
2020-12-03 13:57:19 +01:00
parent 4c9d990478
commit fe2efc3c46
3 changed files with 4 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ type Config struct {
PreSignedURL PreSignedURL
AutoprovisionAccounts bool
EnableBasicAuth bool
Insecure bool
InsecureBackends bool
}
// OIDC is the config for the OpenID-Connect middleware. If set the proxy will try to authenticate every request

View File

@@ -189,8 +189,8 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
Name: "insecure",
Value: false,
Usage: "allow insecure communication to upstream servers",
EnvVars: []string{"PROXY_INSECURE"},
Destination: &cfg.Insecure,
EnvVars: []string{"PROXY_INSECURE_BACKENDS"},
Destination: &cfg.InsecureBackends,
},
// OIDC

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.Insecure,
InsecureSkipVerify: options.Config.InsecureBackends,
},
}