Allow to pass redis options via ENV variable - #52
Conversation
|
Hi and thank you for the time you took to make this. We have reviewed the PR at the time it was opened but we were overwhelmed with work (and still are). Firstly, I agree with being able to support your use case. I have to say, however, I haven't seen this pattern of passing arbitrary options thourgh json to a cli. Can you provide of some examples of some other established cli tools that follow this pattern. I would probably go with supporting a config file of some sort for more complex configuration. We also try to abide by some rules around the cli tool. EDIT: After seeing your addition to the README I updated the master with the current env variables. Thank you for that idea. |
|
@jfragoulis Thank you for your comment. :ssl_params => {
:ca_file => "/path/to/ca.crt",
:cert => OpenSSL::X509::Certificate.new(File.read("client.crt")),
:key => OpenSSL::PKey::RSA.new(File.read("client.key"))
}And each environment might require different options. An attempt to define them all as command-line arguments might overload command-line options with noisy params. I was thinking about what could be the other option, Redisq.config.redis_connection = Redis.newWhat do you think? |
WHY
Secure redis connection might require additional connection params
WHAT