File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11NODE_ENV = development
22PORT = 4000
3+ SECRET_KEY =
4+ EXPIRE_IN = 1d
5+
36DATABASE_URL = postgres://user:password@localhost:5432/your_db
7+
8+ SMTP_HOST = smtp-relay.brevo.com
9+ SMTP_PORT = 587
410EMAIL =
5- GOOGLE_APP_PASSWORD =
6- SECRET_KEY =
7- EXPIRE_IN = 1d
11+ GOOGLE_APP_PASSWORD =
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ export const env = {
44 ENV ,
55 PORT : process . env . PORT || 3000 ,
66 DATABASE_URL : process . env . DATABASE_URL || '' ,
7- SMTP_HOST : process . env . SMTP_HOST || '' ,
8- SMTP_PORT : process . env . SMTP_PORT || '' ,
7+ SMTP_HOST : process . env . SMTP_HOST || 'smtp-relay.brevo.com' , // Valor por defecto
8+ SMTP_PORT : process . env . SMTP_PORT || '587 ' ,
99 EMAIL : process . env . EMAIL || '' ,
10- GOOGLE_APP_PASSWORD : process . env . GOOGLE_APP_PASSWORD || '' ,
10+ GOOGLE_APP_PASSWORD : process . env . GOOGLE_APP_PASSWORD || '' , // Aquí irá API Key de Brevo
1111 SECRET_KEY : process . env . SECRET_KEY || '' ,
1212 EXPIRE_IN : process . env . EXPIRE_IN || '1d'
1313}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const transporter = nodemailer.createTransport({
1414 } ,
1515 tls : {
1616 rejectUnauthorized : false , // Esto ayuda a evitar bloqueos de certificados en Render
17- servername : "smtp.gmail .com" ,
17+ servername : "smtp-relay.brevo .com" ,
1818 minVersion : 'TLSv1.2'
1919 } ,
2020 connectionTimeout : 40000 , // Aumentamos a 40 segundos
You can’t perform that action at this time.
0 commit comments