Make redis prefix configurable
This commit is contained in:
parent
70b8866981
commit
de777bc844
@ -14,7 +14,8 @@ export default {
|
|||||||
},
|
},
|
||||||
redis: {
|
redis: {
|
||||||
host: "127.0.0.1",
|
host: "127.0.0.1",
|
||||||
port: 6379
|
port: 6379,
|
||||||
|
prefix: 'wms'
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: "very_secret_not_known",
|
secret: "very_secret_not_known",
|
||||||
|
@ -19,7 +19,7 @@ export default class RedisComponent extends ApplicationComponent<void> {
|
|||||||
});
|
});
|
||||||
this.store = new RedisStore({
|
this.store = new RedisStore({
|
||||||
client: this.redisClient,
|
client: this.redisClient,
|
||||||
prefix: 'wms-sess:',
|
prefix: config.get<string>('redis.prefix') + '-session:',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user