-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig_sample.js
59 lines (57 loc) · 1.24 KB
/
config_sample.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
56
57
58
59
config = {
site:{
name: 'Project'
},
google_maps_key: '', // https://developers.google.com/maps/documentation/javascript/get-api-key
express:{
port: 3000, // Can be overwritten in console by typing: PORT=1234 node app.js
behind_proxy: false,
public_dir: __dirname + '/public'
},
mongo: {
host: 'localhost',
port: 27017,
db: 'demo',
options: {
server: {
auto_reconnect: true,
poolSize: 10,
socketOptions: {
keepAlive: 1
}
},
db: {
numberOfRetries: 10,
retryMiliSeconds: 1000
}
}
},
default_user: {
name: 'User',
email: '[email protected]',
password: 'pass',
timezone: (new Date().getTimezoneOffset()/-60), // this takes the default server timezone
role: 1
},
sessions: {
secret: 'Some secret', // Create your own large unguessable string
collection: 'site_sessions'
},
cookies: {
expire: 2592000000 // 30 days.
}
}
// Mailer, for password recovery
// Check other transports: https://github.com/andris9/Nodemailer
var nodemailer = require("nodemailer");
config.mailer = {
recovery: "Example.com <[email protected]>",
transport: nodemailer.createTransport("SMTP",{
service: "Gmail",
auth: {
user: "[email protected]",
pass: "password"
}
})
}
module.exports = config;