-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.sample.js
50 lines (44 loc) · 1.12 KB
/
config.sample.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
const config = {
NODE_ENV: 'dev', // or 'production'
PORT: 3000, // or any port you'd like
END_POINT: '/', // or any route you want ie: /email/receive
EMAIL_DELAY: 100, // delay between 2 jobs, in ms
DELAY_ON_ACKNOWLEDGE: true, // wait SES response before executing the next job
RETRY_ON_THROTTLE: true,
RETRY_DELAY: 1000 * 60 * 60, // delay before retry in ms
// secret
JWT_SECRET: 'shhhh',
// logger configuration
LOG_IN_CONSOLE: true,
LOG_IN_FILE: true,
LOG_DIRECTORY: 'log',
// email configuration
EMAIL_KEYS_MAPPING: {
priority: 'priority',
sujet: 'subject',
from: 'from',
fromName: 'fromName',
replyto: 'replyTo',
returnPath: 'returnPath',
to: 'to',
msg_raw: 'text',
msg_html: 'html',
cc: 'cc',
bcc: 'cci',
pj: 'attachments',
},
ATTACHMENTS_KEYS_MAPPING: {
nom: 'filename',
url: 'path',
contentType: 'contentType',
},
// redis configration
REDIS_HOST: 'localhost',
REDIS_PORT: 6379,
REDIS_PASSWORD: false,
// AWS configuration
AWS_ACCESS_KEY_ID: '',
AWS_SECRET_ACCESS_KEY: '',
AWS_REGION: '',
};
module.exports = config;