-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-default.js
58 lines (47 loc) · 1.19 KB
/
config-default.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
var config = {
// Default server host
host: localhost,
// Default server port
port: 8080,
// Base static path
base: '/static',
// Node handlers route
routes: { 'get:/oauth' : require('./routers/oauth.js').oauth.authenticate },
// Now handlers list
everyone: [ require('./handlers/model.js').initial,
require('./handlers/user.js').initial ],
// MongoDB configuration
mongo: {
server: '127.0.0.1',
port: 27017,
serverOption: {},
databaseOption: {},
database: 'Scrum',
authentication: {
username: '',
password: ''
}
},
// Socket.io Transport
transports: ['websocket', 'htmlfile', 'xhr-polling', 'jsonp-polling'],
// Log facility
log: {
appenders: [ { type: 'file',
filename: 'taskboard.log',
maxLogSize: 10485760,
backups: 3,
pollInterval: 15 },
{ type: 'console' } ],
levels: {
console: 'info',
oauth: 'info',
router: 'info',
socketio: 'info',
store: 'info',
model: 'info',
sync: 'info',
user: 'info'
}
}
}
exports.config = config;