-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.js
32 lines (28 loc) · 1020 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
export const auth = {
salt: process.env.EXYNIZE_AUTH_SALT || 'default-auth-salt',
};
export const db = {
host: process.env.EXYNIZE_DB_HOST || 'docker.dev',
database: process.env.EXYNIZE_DB_NAME || 'exynizedb',
user: '',
password: '',
};
export const requireEmailValidation = process.env.EXYNIZE_MAIL_VALIDATION ?
process.env.EXYNIZE_MAIL_VALIDATION === '1' : true;
export const email = {
host: process.env.EXYNIZE_MAIL_HOST || 'mail.server.com',
port: process.env.EXYNIZE_MAIL_PORT || 465,
secure: process.env.EXYNIZE_MAIL_SECURE ? true : false,
auth: {
user: process.env.EXYNIZE_MAIL_USER || '[email protected]',
pass: process.env.EXYNIZE_MAIL_PASS || 'password'
},
};
export const jwtconf = {
secret: process.env.EXYNIZE_JWT_SECRET || 'default-jwt-secret',
};
export const rabbit = {
host: process.env.RABBITMQ_NODENAME || 'docker.dev',
exchange: 'exynize.components.exchange',
messageExpiration: process.env.RABBITMQ_EXPIRATION || 500,
};