Skip to content

Commit 99bc8bd

Browse files
author
joeltaylor
committed
Use ENV for session secret
1 parent e3cbc2a commit 99bc8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var client = redis.createClient(6379, redisHost, {});
4545
var secureCookie = process.env.NODE_ENV === 'production' ? true : false
4646
app.use(expressSession({
4747
store: new RedisStore({client: client}),
48-
secret: 'asd9fjasdflmasdf98u543mlsaffasdf9787asdflkjmfsdalasfdjasdfiuhwqerl'
48+
secret: process.env.COOKIE_KEY
4949
}));
5050
app.use(passport.initialize());
5151
app.use(passport.session());

0 commit comments

Comments
 (0)