From 033d5b459ffe73ac6efa3bef6a3554d497d7b267 Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:34:35 +0800 Subject: [PATCH 1/9] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a4ba189..4417c0a 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ ## 在 Heroku 上的搭建步骤 在此之前,请先读一下“在自己的服务器上的部署步骤”这一节。 由于 Heroku 的限制,当 30 分钟内没有请求的话就会被冻结,之后再次启动时数据就丢了,因此这里我们采用配置环境变量的方式进行配置。 - +### 手动部署 1. Fork 本项目。 2. 在[此处](https://dashboard.heroku.com/new-app)新建一个 Heroku APP,名字随意,之后可以设置自己的域名。 3. 在 Deployment method 处,选择 Connect to Github,输入 message-pusher 搜索本项目,之后点击 Connect,之后启用自动部署(Enable Automatic Deploys)。 @@ -64,6 +64,8 @@ |SMTP_PASS|smtp 服务器用户凭据| |HREF|服务的 href,如 https://wechat-message.herokuapp.com/ ,注意后面要有 /| +### 一键部署 +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Ecalose/message-pusher) ## 发送消息的方式 1. 发送纯文本消息:直接 HTTP GET 请求 `https://你的域名/前缀/消息`,缺点是有字数限制,且只能是纯文本,这是微信模板消息的限制。 2. 发送 Markdown 消息,调用方式分为两种: From 45169e59ac8a3098559afc88f014d4be5c1fd33d Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:44:18 +0800 Subject: [PATCH 2/9] Create app.json --- app.json | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 0000000..31f019f --- /dev/null +++ b/app.json @@ -0,0 +1,61 @@ +{ + "name": "message-pusher", + "description": "消息推送服务", + "keywords": ["v2ray vmess vless trojan shadowsocks socks tor"], + "env": { + "MODE": { + "description": "Heroku 模式", + "value": "1" + }, + "WECHAT_APP_ID": { + "description": "你的测试号的 APP ID", + "value": "" + }, + "WECHAT_APP_SECRET": { + "description": "你的测试号的 APP Secret", + "value": "" + }, + "WECHAT_TEMPLATE_ID": { + "description": "你的测试号的模板消息的 ID", + "value": "" + }, + "WECHAT_OPEN_ID": { + "description": "你的 Open ID", + "value": "" + }, + "WECHAT_VERIFY_TOKEN": { + "description": "你自己设置的验证 token", + "value": "" + }, + "EMAIL": { + "description": "你的默认目标邮箱", + "value": "" + }, + "PREFIX": { + "description": "你的前缀,如 admin", + "value": "" + }, + "SMTP_SERVER": { + "description": "smtp 服务器地址,如 smtp.qq.com", + "value": "" + }, + "SMTP_USER": { + "description": "smtp 服务器用户邮箱", + "value": "" + }, + "SMTP_PASS": { + "description": "你自己设置的验证 token", + "value": "" + }, + "WECHAT_VERIFY_TOKEN": { + "description": "smtp 服务器用户凭据", + "value": "" + }, + "HREF": { + "description": "服务的 href,如 https://wechat-message.herokuapp.com/ ,注意后面要有 /", + "value": "" + }, + }, + "website": "https://github.com/Ecalose/message-pusher", + "repository": "https://github.com/Ecalose/message-pusher" +} From 61a4a795b91c2cdb7d08f1f9b43a52440d0ff269 Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:46:32 +0800 Subject: [PATCH 3/9] Update app.json --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 31f019f..2e81240 100644 --- a/app.json +++ b/app.json @@ -1,7 +1,6 @@ { "name": "message-pusher", "description": "消息推送服务", - "keywords": ["v2ray vmess vless trojan shadowsocks socks tor"], "env": { "MODE": { "description": "Heroku 模式", @@ -57,5 +56,6 @@ }, }, "website": "https://github.com/Ecalose/message-pusher", - "repository": "https://github.com/Ecalose/message-pusher" + "repository": "https://github.com/Ecalose/message-pusher", + "stack": "container" } From d1058e4da951ca17816ead2ad48c0491751b304c Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:49:22 +0800 Subject: [PATCH 4/9] Update app.json --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index 2e81240..65fe8d9 100644 --- a/app.json +++ b/app.json @@ -53,7 +53,7 @@ "HREF": { "description": "服务的 href,如 https://wechat-message.herokuapp.com/ ,注意后面要有 /", "value": "" - }, + } }, "website": "https://github.com/Ecalose/message-pusher", "repository": "https://github.com/Ecalose/message-pusher", From f39de5b3632d3e312e24c14023014ec220777d3e Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 19:02:27 +0800 Subject: [PATCH 5/9] Update app.json --- app.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.json b/app.json index 65fe8d9..f64f33f 100644 --- a/app.json +++ b/app.json @@ -56,6 +56,5 @@ } }, "website": "https://github.com/Ecalose/message-pusher", - "repository": "https://github.com/Ecalose/message-pusher", - "stack": "container" + "repository": "https://github.com/Ecalose/message-pusher" } From fd796b89b1d549dea8fb2af0853d9466ee2b2a67 Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 19:14:25 +0800 Subject: [PATCH 6/9] Update app.json --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index f64f33f..faff8da 100644 --- a/app.json +++ b/app.json @@ -55,6 +55,6 @@ "value": "" } }, - "website": "https://github.com/Ecalose/message-pusher", - "repository": "https://github.com/Ecalose/message-pusher" + "website": "https://github.com/songquanpeng/message-pusher", + "repository": "https://github.com/songquanpeng/message-pusher" } From 75871a2088f9dd1b81dc47c1f73745a4cd9e9114 Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 19:14:59 +0800 Subject: [PATCH 7/9] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4417c0a..9a76f59 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,8 @@ |HREF|服务的 href,如 https://wechat-message.herokuapp.com/ ,注意后面要有 /| ### 一键部署 -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Ecalose/message-pusher) +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/songquanpeng/message-pusher) + ## 发送消息的方式 1. 发送纯文本消息:直接 HTTP GET 请求 `https://你的域名/前缀/消息`,缺点是有字数限制,且只能是纯文本,这是微信模板消息的限制。 2. 发送 Markdown 消息,调用方式分为两种: From a1b28d51396c857c889568e210d6ecc0e318e3e1 Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 19:17:38 +0800 Subject: [PATCH 8/9] Update app.json --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index faff8da..f64f33f 100644 --- a/app.json +++ b/app.json @@ -55,6 +55,6 @@ "value": "" } }, - "website": "https://github.com/songquanpeng/message-pusher", - "repository": "https://github.com/songquanpeng/message-pusher" + "website": "https://github.com/Ecalose/message-pusher", + "repository": "https://github.com/Ecalose/message-pusher" } From 9473d41c4c02d56425495759bbe6fc991c267103 Mon Sep 17 00:00:00 2001 From: Ecalose <47114714+Ecalose@users.noreply.github.com> Date: Sun, 31 Jan 2021 19:17:55 +0800 Subject: [PATCH 9/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a76f59..6d2c3fd 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ |HREF|服务的 href,如 https://wechat-message.herokuapp.com/ ,注意后面要有 /| ### 一键部署 -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/songquanpeng/message-pusher) +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Ecalose/message-pusher) ## 发送消息的方式 1. 发送纯文本消息:直接 HTTP GET 请求 `https://你的域名/前缀/消息`,缺点是有字数限制,且只能是纯文本,这是微信模板消息的限制。