Add configurable redis pass

This commit is contained in:
Alice Gaudon 2020-04-25 18:26:46 +02:00
parent cf6904acd5
commit 6868411aa7
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "wms-core", "name": "wms-core",
"version": "0.4.17", "version": "0.4.18",
"description": "Node web framework", "description": "Node web framework",
"repository": "git@gitlab.com:ArisuOngaku/wms-core.git", "repository": "git@gitlab.com:ArisuOngaku/wms-core.git",
"author": "Alice Gaudon <alice@gaudon.pro>", "author": "Alice Gaudon <alice@gaudon.pro>",

View File

@ -20,6 +20,7 @@ export default class RedisComponent extends ApplicationComponent<void> {
this.store = new RedisStore({ this.store = new RedisStore({
client: this.redisClient, client: this.redisClient,
prefix: config.get<string>('redis.prefix') + '-session:', prefix: config.get<string>('redis.prefix') + '-session:',
pass: config.has('redis.password') ? config.get<string>('redis.password') : undefined,
}); });
} }