Skip to content

Commit e324830

Browse files
committed
chore: update
1 parent 2cf6da2 commit e324830

9 files changed

+71
-30
lines changed

README.md

+69-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,79 @@
11
# v2ray-heroku
22

3+
首先查看别人的 [youtube 教程](https://www.youtube.com/watch?v=xHZyDsFYdvA),了解怎么配置 v2ray-heroku。如果你还想自动化你的 heroku,请查看下面的教程。
4+
5+
本项目是包含,
6+
7+
- 一键部署 V2ray 到 heroku。
8+
- 利用 Github action 实现 重新部署/停止/启动。
9+
- 利用 cloudflare CDN 进行加速。
10+
11+
```text
12+
项目Dockerfile是基于V2fly 官方镜像制作。仅仅增加生产配置文件的脚本。后续,可以通过Actions 实现更新。
13+
```
14+
315
## 一键部署
416

5-
## github actions 管理
17+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://dashboard.heroku.com/new?template=https://github.com/zizifn/v2ray-heroku/tree/main)
18+
19+
## Github Actions 管理
20+
21+
请 Fork 本项目到自己的账户下。 Actions 需要以下 Secrets 才能正常工作,这些 Secrets 会被 workflow 中的 [akhileshns/heroku-deploy](./https://github.com/AkhileshNS/heroku-deploy) 使用。
22+
23+
具体实现细节,请查看 [workflow 配置文件](./github/workflows/main.yml).
24+
25+
| Name | Description |
26+
| ----------------- | ------------------------------------------ |
27+
| APP_NAME | 就是你 heroku 项目的名字 |
28+
| EMAIL | heroku 账户的 email |
29+
| HEROKU_API_KEY | heroku API key, 在 account 设置下可以找到 |
30+
| HEROKU_V2RAY_UUID | V2rayUUID |
31+
32+
### Github Secrets
33+
34+
路径
35+
36+
```text
37+
项目Setting-->Secrets
38+
```
39+
40+
![Secrets](./readme-data/GithubSecrets.gif)
41+
42+
### Heroku API key
43+
44+
路径
45+
46+
```text
47+
heroku Account settings-->API key
48+
```
49+
50+
![Secrets](./readme-data/herokuapikey.gif)
51+
52+
### Github Actions 界面
53+
54+
```text
55+
Actions
56+
```
57+
58+
![Actions](./readme-data/githubactions.gif)
659

760
### 重新部署
861

62+
点击 `Run workflow`, 输入 deploy。 然后就会重新 deploy。
63+
64+
![deploy](./readme-data/deploy.jpg)
65+
966
### 停止
1067

68+
点击 `Run workflow`, 输入 stop。 然后就会 stop,不在计入小时数。
69+
![stop](./readme-data/stop.jpg)
70+
1171
### 启动
72+
73+
点击 `Run workflow`, 输入 start。 然后就会启动。
74+
75+
![start](./readme-data/start.jpg)
76+
77+
## 建立 cloudflare worker
78+
79+
可以参考

app.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"value": "ce7ea10b-5b27-49ab-a93d-6b184df9cce9"
1111
}
1212
},
13-
"website": "https://ibcl.us/Heroku-V2Ray_20191014/",
14-
"repository": "https://github.com/bclswl0827/v2ray-heroku",
13+
"website": "https://github.com/zizifn/v2ray-heroku",
14+
"repository": "https://github.com/zizifn/v2ray-heroku",
1515
"stack": "container"
1616
}

readme-data/GithubSecrets.gif

254 KB
Loading

readme-data/deploy.jpg

115 KB
Loading

readme-data/githubactions.gif

150 KB
Loading

readme-data/herokuapikey.gif

196 KB
Loading

readme-data/start.jpg

109 KB
Loading

readme-data/stop.jpg

114 KB
Loading

v2rayconf.sh

-27
This file was deleted.

0 commit comments

Comments
 (0)