forked from linnovate/mean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.js
55 lines (49 loc) · 1.33 KB
/
all.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
'use strict';
var path = require('path'),
rootPath = path.normalize(__dirname + '/../..');
module.exports = {
root: rootPath,
http: {
port: process.env.PORT || 3000
},
https: {
port: false,
// Paths to key and cert as string
ssl: {
key: '',
cert: ''
}
},
hostname: process.env.HOST || process.env.HOSTNAME,
db: process.env.MONGOHQ_URL,
templateEngine: 'swig',
// The secret should be set to a non-guessable string that
// 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
},
languages: [{
name: 'en',
direction: 'ltr',
}, {
name: 'he',
direction: 'rtl',
}],
currentLanguage: 'en',
cssFramework: 'bootstrap',
// The session cookie name
sessionName: 'connect.sid'
};