File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ app.use(session({
97
97
store : new RedisStore ( {
98
98
port : config . redis_port ,
99
99
host : config . redis_host ,
100
+ db : config . redis_db ,
101
+ pass : config . redis_password ,
100
102
} ) ,
101
103
resave : false ,
102
104
saveUninitialized : false ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ var client = new Redis({
6
6
port : config . redis_port ,
7
7
host : config . redis_host ,
8
8
db : config . redis_db ,
9
+ password : config . redis_password ,
9
10
} ) ;
10
11
11
12
client . on ( 'error' , function ( err ) {
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ var config = {
41
41
redis_host : '127.0.0.1' ,
42
42
redis_port : 6379 ,
43
43
redis_db : 0 ,
44
+ redis_password : '' ,
44
45
45
46
session_secret : 'node_club_secret' , // 务必修改
46
47
auth_cookie_name : 'node_club' ,
You can’t perform that action at this time.
0 commit comments