Skip to content

Commit

Permalink
Add redis authentification
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Oct 10, 2021
1 parent 930e73f commit 2bf4e12
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 52 deletions.
58 changes: 9 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fails-components/noteshandler",
"version": "0.0.5",
"version": "0.0.6",
"description": "Supplies server side notes handling",
"author": "Marten Richter",
"license": "AGPL-3.0-or-later",
Expand Down Expand Up @@ -44,7 +44,7 @@
"dist"
],
"dependencies": {
"@fails-components/config": "0.0.3",
"@fails-components/config": ">=0.0.5",
"@fails-components/data": ">=0.0.2",
"@fails-components/security": "0.0.2",
"@socket.io/redis-adapter": "^7.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const initServer = async () => {

// this should be read only replica
const redisclient = redis.createClient(cfg.redisPort(), cfg.redisHost(), {
detect_buffers: true /* required by notes connection */
detect_buffers: true /* required by notescreen connection */,
password: cfg.redisPass()
})

// and yes pub sub is also read only so we need a mechanism for chat....
Expand Down

0 comments on commit 2bf4e12

Please sign in to comment.