mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
configuring express session to use a secret defined in the config file,
not a hard coded one
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user