Search code examples
ruby-on-railsredissidekiq

configure redis auth on 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..

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


Solution

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