change to InsecureBackends flag

This commit is contained in:
Willy Kloucek committed 2020-12-04 07:31:46 +01:00
1 parent 4c9d990478
commit fe2efc3c46
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ type Config struct {
PreSignedURL PreSignedURL PreSignedURL PreSignedURL
AutoprovisionAccounts bool AutoprovisionAccounts bool
EnableBasicAuth 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 // OIDC is the config for the OpenID-Connect middleware. If set the proxy will try to authenticate every request
+2 -2
View File
@@ -189,8 +189,8 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
Name: "insecure", Name: "insecure",
Value: false, Value: false,
Usage: "allow insecure communication to upstream servers", Usage: "allow insecure communication to upstream servers",
EnvVars: []string{"PROXY_INSECURE"}, EnvVars: []string{"PROXY_INSECURE_BACKENDS"},
Destination: &cfg.Insecure, Destination: &cfg.InsecureBackends,
}, },
// OIDC // OIDC
+1 -1
View File
@@ -54,7 +54,7 @@ func NewMultiHostReverseProxy(opts ...Option) *MultiHostReverseProxy {
TLSHandshakeTimeout: 10 * time.Second, TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second, ExpectContinueTimeout: 1 * time.Second,
TLSClientConfig: &tls.Config{ TLSClientConfig: &tls.Config{
InsecureSkipVerify: options.Config.Insecure, InsecureSkipVerify: options.Config.InsecureBackends,
}, },
} }