backend/config/config.js
2020-08-29 14:30:27 +02:00

20 lines
581 B
JavaScript

// from '.env' in root folder
module.exports = {
// APP
port: process.env.PORT || 3001,
environment: process.env.NODE_ENV || 'development',
// DATABASE
dbURL: process.env.DATABASE_URL,
// JWT
jwtSecret: process.env.JWT_SECRET,
saltingRounds: 10,
// NODEMAILER
smtpHost: process.env.SMTP_HOST,
smtpPort: process.env.SMTP_PORT,
smtpUsername: process.env.SMTP_USERNAME,
smtpPassword: process.env.SMTP_PASSWORD,
smtpRequireTLS: true, // True to force use of StartTLS
smtpSecure: false, // False to force use of StartTLS
smtpPool: true, // Pool connections to server
};