first commit
This commit is contained in:
13
myteamwallet_backend/src/config/mail.config.ts
Normal file
13
myteamwallet_backend/src/config/mail.config.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { registerAs } from '@nestjs/config';
|
||||
|
||||
export default registerAs('mail', () => ({
|
||||
port: parseInt(process.env.MAIL_PORT, 10),
|
||||
host: process.env.MAIL_HOST,
|
||||
user: process.env.MAIL_USER,
|
||||
password: process.env.MAIL_PASSWORD,
|
||||
defaultEmail: process.env.MAIL_DEFAULT_EMAIL,
|
||||
defaultName: process.env.MAIL_DEFAULT_NAME,
|
||||
ignoreTLS: process.env.MAIL_IGNORE_TLS === 'true',
|
||||
secure: process.env.MAIL_SECURE === 'true',
|
||||
requireTLS: process.env.MAIL_REQUIRE_TLS === 'true',
|
||||
}));
|
||||
Reference in New Issue
Block a user