backend/config/config.js

19 lines
582 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-08-29 09:01:57 +00:00
// DATABASE
dbURL: process.env.DATABASE_URL,
2020-08-29 09:01:57 +00:00
// JWT
jwtSecret: process.env.JWT_SECRET,
2020-08-29 09:01:57 +00:00
saltingRounds: process.env.SALTING_ROUNDS || 10,
// NODEMAILER
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
};