File tree Expand file tree Collapse file tree 4 files changed +51
-5
lines changed
Expand file tree Collapse file tree 4 files changed +51
-5
lines changed Original file line number Diff line number Diff line change 1+ server :
2+ port : 7777
3+ origin : ' http://localhost:3000'
4+
15db :
26 host : ' localhost'
37 type : ' postgres'
48 port : 5432
9+ database : ' truthy'
510 username : ' postgres'
6- password : ' root '
11+ password : ' '
712 synchronize : false
813
914jwt :
10- secret : ' example@123'
15+ expiresIn : 900
16+ refreshExpiresIn : 604800
17+ cookieExpiresIn : 604800
18+ secret : ' Rtya$#asdf@sdfsco123ejsd@@3#'
19+
20+ app :
21+ name : ' Truthy'
22+ version : ' 0.2.0'
23+ description : ' Official Truthy API'
24+ appUrl : ' http://157.245.148.131:7777'
25+ frontendUrl : ' http://157.245.148.131:3000'
26+ sameSite : true
27+
28+ mail :
29+ host : ' in-v3.mailjet.com'
30+ port : 587
31+ user : ' e3818ebeda5d271f541c4925e12e60af'
32+ pass : ' fd10758be28c2873ddf9e359644e873a'
33+ 34+ 35+ preview : false
36+ secure : false
37+ ignoreTLS : true
38+ queueName : ' truthy-mail'
39+
40+ queue :
41+ driver : ' redis'
42+ host : ' localhost'
43+ port : 6379
44+ db : ' '
45+ password : ' '
46+ username : ' '
47+
48+ throttle :
49+ global :
50+ ttl : 60
51+ limit : 60
52+ login :
53+ prefix : ' login_fail_throttle'
54+ limit : 5
55+ duration : 2592000
56+ blockDuration : 3000
Original file line number Diff line number Diff line change 11{
22 "name" : " truthy-api" ,
3- "version" : " 0.2 .0" ,
3+ "version" : " 0.3 .0" ,
44 "description" : " Truthy API" ,
55 "author" :
" gobeam <[email protected] >" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const queueConfig = config.get('queue');
4545 } ,
4646 preview : mailConfig . preview ,
4747 template : {
48- dir : __dirname + '/templates' ,
48+ dir : __dirname + '/templates/email/layouts/ ' ,
4949 adapter : new PugAdapter ( ) ,
5050 options : {
5151 strict : true
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class MailProcessor {
5757 to : job . data . payload . to ,
5858 from : process . env . MAIL_FROM || mailConfig . fromMail ,
5959 subject : job . data . payload . subject ,
60- template : __dirname + `/../mail/templates/ email/layouts/email -layout` ,
60+ template : ' email-layout' ,
6161 context : job . data . payload . context ,
6262 attachments : job . data . payload . attachments
6363 } ;
You can’t perform that action at this time.
0 commit comments