Preconfigure E-Mail values
MiroTalk
2
Posts
2
Posters
43
Views
2
Watching
-
I think it would be beneficial to have a few more features preconfigured upon installation. For example the E-Mail section:
/** * Email Notification Configuration * =============================== * SMTP settings for system alerts and notifications * * Core Settings: * ------------- * - alert : Enable/disable email alerts [true/false] (default: false) * - host : SMTP server address (default: 'smtp.gmail.com') * - port : SMTP port (default: 587 for TLS) * - username : SMTP auth username * - password : SMTP auth password (store ONLY in .env) * - sendTo : Recipient email for alerts * * Common Providers: * ---------------- * Gmail: * - host: smtp.gmail.com * - port: 587 * * Office365: * - host: smtp.office365.com * - port: 587 * * SendGrid: * - host: smtp.sendgrid.net * - port: 587 */ email: { alert: process.env.EMAIL_ALERTS_ENABLED === 'true', host: process.env.EMAIL_HOST || 'smtp.gmail.com', port: parseInt(process.env.EMAIL_PORT) || 587, username: process.env.EMAIL_USERNAME || 'your_username', password: process.env.EMAIL_PASSWORD || 'your_password', sendTo: process.env.EMAIL_SEND_TO || 'sfu.mirotalk@gmail.com', },