-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
35 lines (33 loc) · 873 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
'use strict';
exports.constants = {
PORT: process.env.PORT || 3000,
SERVER_TITLE: 'Attendance System REST Api',
JWT_SECRET: process.env.JWT_SECRET || "TEST",
EXPIRATION_PERIOD: '3h'
}
exports.restHapiConfig = {
appTitle: this.constants.SERVER_TITLE,
mongo: {
// CHANGE THIS TO THE MONGODB URI
// For heroku, we need to pass process.env.MONGOLAB_URI
// For test, we can use 'mongodb://localhost/att-rest'
URI: process.env.MONGOLAB_URI
},
server: {
connection: {
port: this.constants.PORT
}
},
enableAuditLog: true,
auditLogTTL: "1d",
enableCreatedAt:false,
enableUpdatedAt:false,
enableDeletedAt:false,
enableCreatedBy:false,
enableUpdatedBy:false,
enableDeletedBy:false,
absoluteModelPath: true,
absoluteApiPath: true,
modelPath: __dirname + '/server/models',
apiPath: __dirname + '/server/api',
}