configuring express session to use a secret defined in the config file,

not a hard coded one
v1.18.x
Julian Lam 12 years ago
parent 924618fc29
commit 70d3105a8e

@ -1,4 +1,5 @@
var config = {
"secret": 'nodebb-secret',
"base_url": "http://localhost",
"port": 4567,
"mailer": {

@ -29,7 +29,7 @@ var express = require('express'),
client: redisServer,
ttl: 60*60*24*14
}),
secret: 'nodebb',
secret: config.secret,
key: 'express.sid'
}));
app.use(function(req, res, next) {

Loading…
Cancel
Save