backend/config/config.js

23 lines
584 B
JavaScript
Raw Normal View History

2020-08-29 09:01:57 +00:00
// from '.env' in root folder
module.exports = {
2020-08-29 09:01:57 +00:00
// APP
port: process.env.PORT || 3001,
environment: process.env.NODE_ENV || 'development',
2020-09-01 16:34:33 +00:00
2020-08-29 09:01:57 +00:00
// DATABASE
dbURL: process.env.DATABASE_URL,
2020-09-01 16:34:33 +00:00
2020-08-29 09:01:57 +00:00
// JWT
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
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
};