fix: add verifySSL option to mail settings
This commit is contained in:
@@ -46,6 +46,10 @@ defaults:
|
||||
company: ''
|
||||
contentLicense: ''
|
||||
logoUrl: https://static.requarks.io/logo/wikijs-butterfly.svg
|
||||
mail:
|
||||
host: ''
|
||||
secure: true
|
||||
verifySSL: true
|
||||
nav:
|
||||
mode: 'MIXED'
|
||||
theming:
|
||||
|
@@ -13,7 +13,10 @@ module.exports = {
|
||||
let conf = {
|
||||
host: WIKI.config.mail.host,
|
||||
port: WIKI.config.mail.port,
|
||||
secure: WIKI.config.mail.secure
|
||||
secure: WIKI.config.mail.secure,
|
||||
tls: {
|
||||
rejectUnauthorized: !(WIKI.config.mail.verifySSL === false)
|
||||
}
|
||||
}
|
||||
if (_.get(WIKI.config, 'mail.user', '').length > 1) {
|
||||
conf = {
|
||||
|
@@ -50,6 +50,7 @@ module.exports = {
|
||||
host: args.host,
|
||||
port: args.port,
|
||||
secure: args.secure,
|
||||
verifySSL: args.verifySSL,
|
||||
user: args.user,
|
||||
pass: (args.pass === '********') ? WIKI.config.mail.pass : args.pass,
|
||||
useDKIM: args.useDKIM,
|
||||
|
@@ -33,6 +33,7 @@ type MailMutation {
|
||||
host: String!
|
||||
port: Int!
|
||||
secure: Boolean!
|
||||
verifySSL: Boolean!
|
||||
user: String!
|
||||
pass: String!
|
||||
useDKIM: Boolean!
|
||||
@@ -52,6 +53,7 @@ type MailConfig {
|
||||
host: String!
|
||||
port: Int!
|
||||
secure: Boolean!
|
||||
verifySSL: Boolean!
|
||||
user: String!
|
||||
pass: String!
|
||||
useDKIM: Boolean!
|
||||
|
@@ -104,6 +104,7 @@ module.exports = () => {
|
||||
host: '',
|
||||
port: 465,
|
||||
secure: true,
|
||||
verifySSL: true,
|
||||
user: '',
|
||||
pass: '',
|
||||
useDKIM: false,
|
||||
|
Reference in New Issue
Block a user