Plugins: add option to proxy ds connections through a secure socks proxy (#59254)
* Plugins: add feature to proxy data source connections
(cherry picked from commit 6805c951e9)
This commit is contained in:
@@ -468,6 +468,8 @@ type Cfg struct {
|
||||
|
||||
Search SearchSettings
|
||||
|
||||
SecureSocksDSProxy SecureSocksDSProxySettings
|
||||
|
||||
// Access Control
|
||||
RBACEnabled bool
|
||||
RBACPermissionCache bool
|
||||
@@ -1070,6 +1072,13 @@ func (cfg *Cfg) Load(args CommandLineArgs) error {
|
||||
cfg.Storage = readStorageSettings(iniFile)
|
||||
cfg.Search = readSearchSettings(iniFile)
|
||||
|
||||
cfg.SecureSocksDSProxy, err = readSecureSocksDSProxySettings(iniFile)
|
||||
if err != nil {
|
||||
// if the proxy is misconfigured, disable it rather than crashing
|
||||
cfg.SecureSocksDSProxy.Enabled = false
|
||||
cfg.Logger.Error("secure_socks_datasource_proxy unable to start up", "err", err.Error())
|
||||
}
|
||||
|
||||
if VerifyEmailEnabled && !cfg.Smtp.Enabled {
|
||||
cfg.Logger.Warn("require_email_validation is enabled but smtp is disabled")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user