Skip to content

Commit

Permalink
add stickyOptions for sticky socket sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
timelf123 committed Apr 20, 2016
1 parent ab53530 commit f28e667
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/env/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ module.exports = {
loginPage: '/auth/login',
cssFramework: 'bootstrap'
},
clusterSticky: false,
stickyOptions: {
proxy: false, //activate layer 4 patching
header: 'x-forwarded-for', //provide here your header containing the users ip
num: (process.env.CPU_COUNT || require('os').cpus().length) - 1,
},
// The session cookie name
sessionName: 'connect.sid',
// Set bodyParser options
Expand Down

0 comments on commit f28e667

Please sign in to comment.