-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
47 lines (39 loc) · 1.41 KB
/
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
46
47
require('dotenv').config({ path: './.env.local' });
module.exports = {
SERVER_PORT: process.env.PORT,
JWT_SECRET: process.env.JWT_SECRET,
DB_CONF: {
HOST: process.env.DB_HOST ,
USER: process.env.DB_USER ,
PASSWORD: process.env.DB_PASSWORD ,
DB: process.env.DB_DB ,
dialect: process.env.DB_DIALECT ,
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
}
},
ROLES : ["superadmin", "admin", "staff", "user"],
COMPANY_ROLES : ["owner", "admin", "accountant", "inspector", "cashier","employee"],
CORS_ORIGIN : [
"http://localhost:8080",
"http://localhost:8081",
"http://testing.test",
"https://testing.test"
],
SIGNUP_URL : "https://bacapikiran.com",
SUPERADMIN_USER : process.env.SUPERADMIN_USER,
SUPERADMIN_EMAIL : process.env.SUPERADMIN_EMAIL,
SUPERADMIN_PASSWORD : process.env.SUPERADMIN_PASSWORD,
// EMAIL CONFIGURATION
ACTIVATE_EMAIL : false,
SENDGRID_API_KEY : process.env.SENDGRID_API_KEY,
SENDGRID_EMAIL_FROM : process.env.SENDGRID_EMAIL_FROM,
SENDGRID_TEMPLATE : {
password_reset : process.env.SENDGRID_TEMPLATE_PASSWORD_RESET,
confirm_account : process.env.SENDGRID_TEMPLATE_CONFIRM_ACCOUNT,
employee_invitation : process.env.SENDGRID_TEMPLATE_EMPLOYEE_INVITATION,
}
};