Files
ClassContent/历届学生/王凯/18-11-23/src/config/index.js
2024-09-27 02:06:13 +08:00

55 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
BaseUrl: 'http://www.xbiquge.la',
BookUrl: '/15/15409/index.html',
ApiStatusCode: {
success: {
status: 200,
data: null
},
errors: {
status: 404,
data: []
}
},
MysqlConfig: {
connectionLimit : 10,
host : 'localhost',
user : 'root',
password : 'lb714500',
database : 'chongzi'
},
Sql: {
index: {
insert: "INSERT chongzi_text (text_title, text_url) VALUES (?,?)",
select: "SELECT * FROM chongzi_text"
}
},
mailOption: {
send: {
// 服务器地址
host: 'smtp.163.com',
// 使用了内置传输发送邮件 查看支持列表https://nodemailer.com/smtp/well-known/
service: '163',
// SMTP 端口
port: 465,
// 使用SSL
secureConnection: true,
auth: {
user: 'lb2271608011@163.com',
// 这里密码不是qq密码是smtp授权码
pass: 'lb714500',
}
},
accept: {
// "发件人名称" <发件人邮箱>
from: '"小说更新程序" <lb2271608011@163.com>',
// 接收人邮箱
to: '2271608011@qq.com',
// 邮件标题
subject: null,
// 发送text或者html格式
// text: 'Hello world?',
html: null // html body
}
}
}