mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 07:51:11 +10:00
make env validation errors clear
* modify mail smtp variable names
This commit is contained in:
@ -29,12 +29,12 @@ export const mailDriverConfigProvider = {
|
||||
return {
|
||||
driver,
|
||||
config: {
|
||||
host: environmentService.getMailHost(),
|
||||
port: environmentService.getMailPort(),
|
||||
host: environmentService.getSmtpHost(),
|
||||
port: environmentService.getSmtpPort(),
|
||||
connectionTimeout: 30 * 1000, // 30 seconds
|
||||
auth: {
|
||||
user: environmentService.getMailUsername(),
|
||||
pass: environmentService.getMailPassword(),
|
||||
user: environmentService.getSmtpUsername(),
|
||||
pass: environmentService.getSmtpPassword(),
|
||||
},
|
||||
} as SMTPTransport.Options,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user