/
all.js
75 lines (58 loc) · 1.52 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
host: 'localhost',
http: {
port: 4242,
socket: true
},
https: {
enabled: false,
port: 4243,
socket: true
},
methodOverride: {
enabled: false,
attributeName: 'newMethod'
},
database: {
enabled: true,
host: 'localhost',
port: 27017,
name: 'rhapspody-login',
username: undefined,
password: undefined,
mongoOptions: {}
},
log: {
//For debug levels, see WolverineJS documentation: https://github.com/talyssonoc/wolverinejs
level: 'all',
//if undefined, will print to the terminal
output: undefined,
//If true, will print the error stack if an Error object is passed as argument in some log method
printStack: false,
//If true, show the debug level before the message
printLevel: true,
//If true, shows the time the log was logged before the level name
time: true,
//If true, show and file and the line number of where the log was called
printFileInfo: true
},
routes: {
//Controller used when access the app's root
mainController: 'main',
//View used when the user doesn't specify it
mainView: 'index',
//If must be created REST routes for models
allowREST: true
},
//If true, uploaded files via form will be at req.file
upload: {
enabled: false,
},
compression: {
enabled: true
},
generateClientModels: true,
csrf: {
enabled: false
}
};