-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
45 lines (43 loc) · 898 Bytes
/
config.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
const { resolve } = require('path');
exports.default = {
port: 3100,
dateFormat: 'DD MMM YY, H:mm:ss',
logs: {
directory: resolve(__dirname, 'logs'),
filename: 'logfile.log',
handleExceptions: true,
json: false,
maxsize: 5242880, // 5MB
maxFiles: 25,
colorize: false
},
storageLimits: {
userLoginHistory: 2
},
authentication: {
userPasswordSalt: 8,
expiresIn: 604800,
jwtSecret: 'what-are-you-doing'
},
development: {
dialect: 'sqlite',
host: 'localhost',
username: 'root',
password: 'root',
storage: 'database.sqlite'
},
test: {
dialect: 'sqlite',
host: 'localhost',
username: 'root',
password: 'root',
storage: 'database-test.sqlite'
},
production: {
dialect: 'sqlite',
host: 'localhost',
username: 'root',
password: 'root',
storage: 'database-prod.sqlite'
}
};