feat(email): option to allow self signed certificates

This commit is contained in:
sct
2020-12-23 12:18:40 +09:00
parent a7db01fba4
commit 6898357b13
5 changed files with 65 additions and 28 deletions

View File

@@ -41,6 +41,11 @@ class EmailAgent
host: emailSettings.smtpHost,
port: emailSettings.smtpPort,
secure: emailSettings.secure,
tls: emailSettings.allowSelfSigned
? {
rejectUnauthorized: false,
}
: undefined,
auth:
emailSettings.authUser && emailSettings.authPass
? {

View File

@@ -74,6 +74,7 @@ export interface NotificationAgentEmail extends NotificationAgentConfig {
secure: boolean;
authUser?: string;
authPass?: string;
allowSelfSigned: boolean;
};
}
@@ -129,8 +130,9 @@ class Settings {
options: {
emailFrom: '',
smtpHost: '127.0.0.1',
smtpPort: 465,
smtpPort: 587,
secure: false,
allowSelfSigned: false,
},
},
discord: {