change to InsecureBackends flag
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user