mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-06 20:21:01 +01:00
fixing identations
This commit is contained in:
30
config/env/all.js
vendored
30
config/env/all.js
vendored
@@ -10,28 +10,28 @@ module.exports = {
|
||||
templateEngine: 'swig',
|
||||
|
||||
// The secret should be set to a non-guessable string that
|
||||
// is used to compute a session hash
|
||||
// is used to compute a session hash
|
||||
sessionSecret: 'MEAN',
|
||||
|
||||
// The name of the MongoDB collection to store sessions in
|
||||
sessionCollection: 'sessions',
|
||||
|
||||
// The session cookie settings
|
||||
sessionCookie: {
|
||||
path: '/',
|
||||
httpOnly: true,
|
||||
// If secure is set to true then it will cause the cookie to be set
|
||||
// only when SSL-enabled (HTTPS) is used, and otherwise it won't
|
||||
// set a cookie. 'true' is recommended yet it requires the above
|
||||
// mentioned pre-requisite.
|
||||
secure: false,
|
||||
// Only set the maxAge to null if the cookie shouldn't be expired
|
||||
// at all. The cookie will expunge when the browser is closed.
|
||||
maxAge: null
|
||||
},
|
||||
sessionCookie: {
|
||||
path: '/',
|
||||
httpOnly: true,
|
||||
// If secure is set to true then it will cause the cookie to be set
|
||||
// only when SSL-enabled (HTTPS) is used, and otherwise it won't
|
||||
// set a cookie. 'true' is recommended yet it requires the above
|
||||
// mentioned pre-requisite.
|
||||
secure: false,
|
||||
// Only set the maxAge to null if the cookie shouldn't be expired
|
||||
// at all. The cookie will expunge when the browser is closed.
|
||||
maxAge: null
|
||||
},
|
||||
|
||||
// The session cookie name
|
||||
sessionName: 'connect.sid',
|
||||
// The session cookie name
|
||||
sessionName: 'connect.sid',
|
||||
|
||||
assets: {
|
||||
lib: {
|
||||
|
||||
@@ -95,7 +95,7 @@ module.exports = function(db) {
|
||||
collection: config.sessionCollection
|
||||
}),
|
||||
cookie: config.sessionCookie,
|
||||
name: config.sessionName
|
||||
name: config.sessionName
|
||||
}));
|
||||
|
||||
// use passport session
|
||||
|
||||
Reference in New Issue
Block a user