在 sidekiq 上配置 redis 身份验证 [英] configure redis auth on sidekiq
本文介绍了在 sidekiq 上配置 redis 身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想我遗漏了一些东西,因为我在文档中找不到如何为 redis 实例编写用户名和密码以与 sidekiq 一起使用..
I think I am missing something since I couldn't find in the docs how to write the username and password for the redis instance to use with sidekiq..
有没有办法做到这一点?还是通过 ENV 变量?
Is there a way to do this? Or is it through ENV vars?
推荐答案
Sidekiq 将无法识别的 redis 选项直接传递给 Redis 驱动程序:
Sidekiq passes unrecognized redis options directly to the Redis driver:
config.redis = { password: 'bar' }
而且redis没有用户的概念,所以只有密码.
And redis does not have the concept of users so there's only password.
这篇关于在 sidekiq 上配置 redis 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文