Skip to content
Mightybeardedking edited this page Mar 30, 2021 · 1 revision

Password

Redis Config

Open the Redis Cli by typing

Redis-cli

Then type this command to add a password to the standard redis user

config set requirepass "yourpassword"

This command will set "yourpassword" as the password for the Redis user.

You can check if it worked by typing:

AUTH "yourpassword"

BrowserQuest Config

We now need to add the redis password to BrowserQuest

Run this command from the BrowserQuest Directory:

nano server/js/db_providers/redis.js

Go to Line 12, Where it says: client.auth(config.redis_password || "");

Add your password between the quotation marks so it looks like this:

client.auth(config.redis_password || "yourpassword");

Save and Exit the text editor.

You can now start Browserquest