Skip to content

Commit

Permalink
Moving session secret to config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Krylik committed Nov 18, 2013
1 parent d055c8d commit 886553d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser());
app.use(express.session({secret: 'DU2787GpjHDGGe72ZDBjh23jkDFs'}));
app.use(express.session({secret: config.sessionSecret}));
app.use(app.router);
app.use(require('stylus').middleware(__dirname + '/public'));
app.use(express.static(path.join(__dirname, 'public')));
Expand Down
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config.db = {
// Application
config.port = 3000;
config.env = 'production';
config.sessionSecret = '1234567890ABCDEF';

// Read and write settings
config.readHosts = function(db, callback){
Expand Down

0 comments on commit 886553d

Please sign in to comment.