Make redis prefix configurable

This commit is contained in:
Alice Gaudon 2020-04-25 09:32:59 +02:00
parent 70b8866981
commit de777bc844
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,8 @@ export default {
},
redis: {
host: "127.0.0.1",
port: 6379
port: 6379,
prefix: 'wms'
},
session: {
secret: "very_secret_not_known",

View File

@ -19,7 +19,7 @@ export default class RedisComponent extends ApplicationComponent<void> {
});
this.store = new RedisStore({
client: this.redisClient,
prefix: 'wms-sess:',
prefix: config.get<string>('redis.prefix') + '-session:',
});
}