对redis设置密码,防止非法访问

This commit is contained in:
doramart 2015-09-16 13:15:56 +08:00
parent 012fa96ef2
commit c6ad107a5a

1
app.js
View File

@ -68,6 +68,7 @@ app.use(session({
store: new RedisStore({
port: settings.redis_port,
host: settings.redis_host,
pass : settings.redis_psd,
ttl: 1800 // 过期时间
}),
resave: true,