forked from mozilla/BrowserQuest
-
Notifications
You must be signed in to change notification settings - Fork 219
Redis Config
Mightybeardedking edited this page Mar 30, 2021
·
1 revision
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"
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