Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions process.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const DB_CONFIG = {
"DB_HOST": process.env.DB_HOST || 'localhost',
"DB_PORT": process.env.DB_PORT || '3306',
"DB_PASSWD": process.env.DB_PASSWD || "AB123456",
"DB_PASSWD": process.env.DB_PASSWD || "cxf",
"DB_USER": process.env.DB_USER || "root",
"DB_NAME": process.env.DB_NAME || "codeexam"
}
Expand All @@ -16,7 +16,7 @@ const configure = {
env: {
...DB_CONFIG,
"NODE_ENV": process.env.NODE_ENV,
"EMAIL_PASSWD": "XQe3s2piwR0R"
"EMAIL_PASSWD": "cxf123"
}
}, {
name: "exam",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ classnames - 类名解析

### 启动需要配置的环境变量

- EMAIL_PASSED 邮箱密码
- EMAIL_PASSWD 邮箱密码
- DB_HOST 数据库HOST
- DB_USER 数据用户
- DB_PASSWD 数据库密码
Expand Down
4 changes: 2 additions & 2 deletions scripts/nginx/www.weavinghorse.test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ server {
server_name www.weavinghorse.test;

location /{
proxy_pass http://localhost:8000;
proxy_pass http://localhost:80000;
}

localhost /inspire/ {
location /inspire/ {
proxy_pass http://localhost:8009/;
}

Expand Down
6 changes: 3 additions & 3 deletions service/account/dao/send_email.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ const send = (to, title, body) => {
return new Promise( (resolve, reject) => {

const transporter = nodemailer.createTransport({
host : 'smtp.mxhichina.com',
host : 'smtp.163.com',
port: 465, // SMTP 端口
secureConnection: true, // 使用 SSL
auth: {
user: 'art@weavinghorse.com',
user: '15706844523@163.com',
//这里密码不是qq密码,是你设置的smtp密码
pass: process.env.EMAIL_PASSWD
}
})

const mailOptions = {
from: 'art@weavinghorse.com', // 发件地址
from: '15706844523@163.com', // 发件地址
to: to, // 收件列表
subject: title, // 标题
//text和html两者只支持一种
Expand Down