configure redis auth on sidekiq

时光毁灭记忆、已成空白 提交于 2019-12-04 19:40:17

问题


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..

Is there a way to do this? Or is it through ENV vars?


回答1:


Sidekiq passes unrecognized redis options directly to the Redis driver:

config.redis = { password: 'bar' }

And redis does not have the concept of users so there's only password.



来源:https://stackoverflow.com/questions/25970513/configure-redis-auth-on-sidekiq

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!