diff --git a/envar-base-secret.template.js b/envar-base-secret.template.js index 3e3393e..ab885c5 100644 --- a/envar-base-secret.template.js +++ b/envar-base-secret.template.js @@ -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', }, - } - } + }, + }, }, -} \ No newline at end of file +}