diff --git a/src/database/data-source.ts b/src/database/data-source.ts index 069ba46..3851caf 100644 --- a/src/database/data-source.ts +++ b/src/database/data-source.ts @@ -24,10 +24,10 @@ export const typeormConfig: DataSourceOptions = { 'dist/database/migrations/*.js', 'dist/database/migrations/seeds/*.js', ], - /* ssl: { + ssl: { ca: CA_CERT, rejectUnauthorized: false, - }, */ + }, }; export const AppDataSource = new DataSource({ diff --git a/src/modules/mails/mail.module.ts b/src/modules/mails/mail.module.ts index adb1f0d..f63d48a 100644 --- a/src/modules/mails/mail.module.ts +++ b/src/modules/mails/mail.module.ts @@ -12,17 +12,16 @@ import { MailService } from './mail.service'; useFactory: async (config: ConfigService) => ({ transport: { host: config.get('MAIL_HOST'), - port: config.get('MAIL_PORT'), + port: config.get('MAIL_PORT'), // secure: true, // secure: false, - // auth: { - // user: config.get('MAIL_USER'), - // pass: config.get('MAIL_PASSWORD'), - //}, + auth: { + user: config.get('MAIL_USER'), + pass: config.get('MAIL_PASSWORD'), + }, // tls: { // rejectUnauthorized: false, // }, - }, defaults: { from: `no-reply `, },