diff --git a/config/default.ts b/config/default.ts index d9172d6..3bf3500 100644 --- a/config/default.ts +++ b/config/default.ts @@ -14,7 +14,8 @@ export default { }, redis: { host: "127.0.0.1", - port: 6379 + port: 6379, + prefix: 'wms' }, session: { secret: "very_secret_not_known", diff --git a/src/components/RedisComponent.ts b/src/components/RedisComponent.ts index f0efd3c..ca2b698 100644 --- a/src/components/RedisComponent.ts +++ b/src/components/RedisComponent.ts @@ -19,7 +19,7 @@ export default class RedisComponent extends ApplicationComponent { }); this.store = new RedisStore({ client: this.redisClient, - prefix: 'wms-sess:', + prefix: config.get('redis.prefix') + '-session:', }); }