Add configurable redis pass
This commit is contained in:
parent
cf6904acd5
commit
6868411aa7
@ -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>",
|
||||||
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user