Skip to content

Commit 2bf4e12

Browse files
committed
Add redis authentification
1 parent 930e73f commit 2bf4e12

File tree

3 files changed

+13
-52
lines changed

3 files changed

+13
-52
lines changed

package-lock.json

Lines changed: 9 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fails-components/noteshandler",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Supplies server side notes handling",
55
"author": "Marten Richter",
66
"license": "AGPL-3.0-or-later",
@@ -44,7 +44,7 @@
4444
"dist"
4545
],
4646
"dependencies": {
47-
"@fails-components/config": "0.0.3",
47+
"@fails-components/config": ">=0.0.5",
4848
"@fails-components/data": ">=0.0.2",
4949
"@fails-components/security": "0.0.2",
5050
"@socket.io/redis-adapter": "^7.0.0",

src/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ const initServer = async () => {
3535

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

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

0 commit comments

Comments
 (0)