-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathconsts.js
More file actions
29 lines (28 loc) · 862 Bytes
/
consts.js
File metadata and controls
29 lines (28 loc) · 862 Bytes
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
// Configuration
const consts = {
APIHost : {
'production': '',
'development': 'https://dzlistings.herokuapp.com',
'local': 'http://localhost:3000',
},
OUTLOOK: {
// Office 365 server
MAIL_SERVER: 'smtp.office365.com',
// secure SMTP
SMTP_PORT: '587',
TLS: {ciphers: 'SSLv3'}
},
PING_LIMITER: {
RATE_LIMIT: {
windowMs: 15 * 60 * 1000, // 15 minutes
max: 5, // limit each IP to 100 requests per windowMs
},
SLOW_DOWN_LIMIT: {
windowMs: 15 * 60 * 1000, // 15 minutes
delayAfter: 100, // allow 100 requests per 15 minutes, then...
delayMs: 500, // begin adding 500ms of delay per request above 100:
// request # 101 is delayed by 500ms
}
}
};
module.exports = consts;