🍱 fix readme to add redis pass

This commit is contained in:
Max Lerebourg
2023-03-04 12:05:09 +01:00
parent 50690d1ac7
commit 46e581eca2
3 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ func New(ctx context.Context, next http.Handler, config *configuration.Config, n
},
cacheClient: &cache.Client{},
}
bouncer.cacheClient.New(config.RedisCacheEnabled, config.RedisCacheHost, config.RedisCachePass)
config.RedisCachePassword, _ = configuration.GetVariable(config, "RedisCachePassword")
bouncer.cacheClient.New(config.RedisCacheEnabled, config.RedisCacheHost, config.RedisCachePassword)
//nolint:nestif
if (config.CrowdsecMode == configuration.StreamMode || config.CrowdsecMode == configuration.AloneMode) && ticker == nil {