Skip to content

Commit 6cc6621

Browse files
committed
Add redis authentification
1 parent b3ea7d1 commit 6cc6621

File tree

3 files changed

+15
-54
lines changed

3 files changed

+15
-54
lines changed

package-lock.json

Lines changed: 11 additions & 51 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/notepadhandler",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "Supplies server side notepad handling",
55
"author": "Marten Richter",
66
"license": "AGPL-3.0-or-later",
@@ -43,7 +43,7 @@
4343
"dist"
4444
],
4545
"dependencies": {
46-
"@fails-components/config": ">=0.0.4",
46+
"@fails-components/config": ">=0.0.5",
4747
"@fails-components/data": ">=0.0.2",
4848
"@fails-components/security": ">=0.0.2",
4949
"@socket.io/redis-adapter": "^7.0.0",

src/server.js

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

3636
const redisclient = redis.createClient(cfg.redisPort(), cfg.redisHost(), {
37-
detect_buffers: true /* required by notescreen connection */
37+
detect_buffers: true /* required by notescreen connection */,
38+
password: cfg.redisPass()
3839
})
3940

4041
const redisclpub = redisclient.duplicate()

0 commit comments

Comments
 (0)