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-09-01 16:34:33 +00:00
|
|
|
|
2020-08-29 09:01:57 +00:00
|
|
|
// DATABASE
|
2020-08-29 08:48:21 +00:00
|
|
|
dbURL: process.env.DATABASE_URL,
|
2020-09-01 16:34:33 +00:00
|
|
|
|
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 12:30:27 +00:00
|
|
|
saltingRounds: 10,
|
2020-09-01 16:34:33 +00:00
|
|
|
|
2020-08-29 09:01:57 +00:00
|
|
|
// 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 12:30:27 +00:00
|
|
|
smtpRequireTLS: true, // True to force use of StartTLS
|
|
|
|
smtpSecure: false, // False to force use of StartTLS
|
|
|
|
smtpPool: true, // Pool connections to server
|
2020-05-07 13:10:15 +00:00
|
|
|
};
|