Skip to content

Conversation

@hoangsetup
Copy link

No description provided.


if(process.env.NODE_ENV === 'production') {
var redisURI = require('url').parse(process.env.REDIS_URL);
var redisPassword = redisURI.auth.split(':')[1];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if redis server without auth then redisURI.auth will be null

@OmarElgabry
Copy link
Owner

Thanks. But, please without the part of giving an option to enable/disable the authentication, as this part needs to be document, coded, tested and reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants