2020-08-29 09:01:57 +00:00
|
|
|
// from '.env' in root folder
|
2020-05-07 13:10:15 +00:00
|
|
|
module.exports = {
|
2020-08-29 09:01:57 +00:00
|
|
|
// APP
|
2020-05-07 13:10:15 +00:00
|
|
|
port: process.env.PORT || 3001,
|
2020-05-08 11:12:10 +00:00
|
|
|
environment: process.env.NODE_ENV || 'development',
|
2020-08-29 09:01:57 +00:00
|
|
|
// DATABASE
|
2020-08-29 08:48:21 +00:00
|
|
|
dbURL: process.env.DATABASE_URL,
|
2020-08-29 09:01:57 +00:00
|
|
|
// JWT
|
2020-08-29 08:48:21 +00:00
|
|
|
jwtSecret: process.env.JWT_SECRET,
|
2020-08-29 09:01:57 +00:00
|
|
|
saltingRounds: process.env.SALTING_ROUNDS || 10,
|
|
|
|
// NODEMAILER
|
2020-08-29 08:48:21 +00:00
|
|
|
smtpHost: process.env.SMTP_HOST,
|
|
|
|
smtpPort: process.env.SMTP_PORT,
|
|
|
|
smtpUsername: process.env.SMTP_USERNAME,
|
|
|
|
smtpPassword: process.env.SMTP_PASSWORD,
|
2020-08-29 09:01:57 +00:00
|
|
|
smtpSecure: process.env.SMTP_SECURE || true, // use TLS
|
|
|
|
smtpPool: process.env.SMTP_POOL|| true, // Pool connections to server
|
2020-05-07 13:10:15 +00:00
|
|
|
};
|