redis conf
This commit is contained in:
parent
d9adcb2fa9
commit
e8eabda26f
@ -14,7 +14,9 @@ import { config } from './config';
|
||||
import { Game } from './object/game';
|
||||
|
||||
const RedisStore = connectRedis(session);
|
||||
const redisClient = config.redis?.enabled ? redis.createClient() : undefined;
|
||||
const redisClient = config.redis?.enabled ? redis.createClient({
|
||||
url: config.redis?.url || 'redis://localhost:6379',
|
||||
}) : undefined;
|
||||
|
||||
const sessionMiddleware = session({
|
||||
secret: config.server.sessionSecret,
|
||||
|
Loading…
Reference in New Issue
Block a user