This commit is contained in:
陆柯 2022-08-09 16:55:58 +08:00
parent e2f9feed1f
commit 5c59994fa9

View File

@ -4,16 +4,16 @@ module.exports = {
port: 465,
secure: true, // use tls
auth: {
user:'',
pass:''
user: '',
pass: '',
},
tls: { rejectUnauthorized: false }
tls: { rejectUnauthorized: false },
},
SMS: {
vendor: '', // DXTON, UNICLOUD, ALIYUN, TENCENT
DXTON: {
urlChina:'http://sms.106jiekou.com/utf8/sms.aspx?account= &password= ',
urlWorld:'http://sms.106jiekou.com/utf8/worldapi.aspx?account= &password= ',
urlChina: 'http://sms.106jiekou.com/utf8/sms.aspx?account= &password= ',
urlWorld: 'http://sms.106jiekou.com/utf8/worldapi.aspx?account= &password= ',
},
UNICLOUD: {
appid: '',
@ -26,16 +26,17 @@ module.exports = {
TEMPLATE_PASSCODE_SIMPLEST: '',
},
ALIYUN: {
accessKeyId:'',
secretAccessKey:'',
signName:'',
accessKeyId: '',
secretAccessKey: '',
signName: '',
TEMPLATE_PASSCODE_REGISTER_NEWUSER: '',
TEMPLATE_PASSCODE_RESET_PASSWORD: '',
TEMPLATE_PASSCODE_CHANGE_PHONE: '',
TEMPLATE_PASSCODE_GENERAL_PURPOSE: '',
TEMPLATE_PASSCODE_SIMPLEST: '',
},
TENCENT: { // https://cloud.tencent.com/document/product/382/43197
TENCENT: {
// https://cloud.tencent.com/document/product/382/43197
appid: '',
signName: '',
TEMPLATE_PASSCODE_SIMPLEST: '',
@ -49,25 +50,25 @@ module.exports = {
secretKey: process.env.secretKey,
},
/* 必填地域信息可以直接填写字符串ap-guangzhou支持的地域列表参考 https://cloud.tencent.com/document/api/382/52071#.E5.9C.B0.E5.9F.9F.E5.88.97.E8.A1.A8 */
region: "ap-nanjing", // ap-beijing, ap-nanjing, ap-guangzhou
region: 'ap-nanjing', // ap-beijing, ap-nanjing, ap-guangzhou
/* :
* 客户端配置对象可以指定超时时间等配置 */
* 客户端配置对象可以指定超时时间等配置 */
profile: {
/* SDK默认用TC3-HMAC-SHA256进行签名非必要请不要修改这个字段 */
signMethod: "HmacSHA256",
signMethod: 'HmacSHA256',
httpProfile: {
/* SDK使POST
* 如果你一定要使用GET方法可以在这里设置GET方法无法处理一些较大的请求 */
reqMethod: "POST",
* 如果你一定要使用GET方法可以在这里设置GET方法无法处理一些较大的请求 */
reqMethod: 'POST',
/* SDK
* 如有需要请在代码中查阅以获取最新的默认值 */
* 如有需要请在代码中查阅以获取最新的默认值 */
reqTimeout: 30,
/**
* 指定接入地域域名默认就近地域接入域名为 sms.tencentcloudapi.com 也支持指定地域域名访问例如广州地域的域名为 sms.ap-guangzhou.tencentcloudapi.com
*/
endpoint: "sms.tencentcloudapi.com"
endpoint: 'sms.tencentcloudapi.com',
},
}
}
},
},
},
}
}