mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-18 03:18:52 -06:00
change to InsecureBackends flag
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user