forked from vocascan/vocascan-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvocascan.config.example.js
62 lines (57 loc) · 1.47 KB
/
vocascan.config.example.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
/**
* For more help with the file see https://docs.vocascan.com/#/vocascan-server/configuration
* This config file lists all available options
*/
module.exports = {
debug: false,
server: {
port: 5000,
jwt_secret: '',
salt_rounds: 10,
registration_locked: false,
cors: ['https://web.example1.com', 'https://web.example2.com'],
},
database: {
connection_url: '',
dialect: '',
storage: '',
host: '',
port: '',
username: '',
password: '',
database: '',
},
log: {
my_console_logger: {
enable: true,
mode: 'console',
level: 'info',
colorize: true,
enable_default_log: true,
enable_sql_log: true,
enable_router_log: true,
format_default: '{{level}}: {{message}}',
format_sql: '{{message}}',
format_router:
'{{tokens.remoteAddr}} - "{{req.user ? req.user.username : "no user"}}" {{tokens.date("clf")}} "{{tokens.method}} {{tokens.url}}" {{tokens.colorizedStatus}} {{tokens.res("content-length")}} "{{tokens.userAgent}}" - {{tokens.responseTime(3)}}ms',
json: false,
handle_exceptions: true,
handle_rejections: true,
stderr_levels: ['error'],
},
file: {
enable: true,
mode: 'file',
level: 'info',
enable_sql_log: true,
enable_router_log: true,
filename: './logs/vocascan.log',
max_size: 100000,
max_files: 3,
archive_logs: true,
},
},
api: {
enable_swagger: true,
},
};