Skip to content

Commit

Permalink
chore: 添加多app和账户的文档。
Browse files Browse the repository at this point in the history
  • Loading branch information
zizifn committed Oct 9, 2021
1 parent 608124c commit a42be88
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# v2ray-heroku

> 貌似新建的app都需要科学访问,请使用cloudflare CDN 套一层。
> 遇到问题,请开 issue/discussions。
> 切换到最新的 VLESS 协议。具体客户端配置请看 config 章节。
Expand All @@ -15,6 +17,7 @@

- 一键部署 V2ray 到 heroku。
- 利用 Github action 实现 重新部署/停止/启动。
- 支持多app和多账户 重新部署/停止/启动。
- 利用 cloudflare CDN 进行加速。

```text
Expand Down Expand Up @@ -100,6 +103,7 @@ Actions

![start](./readme-data/start.jpg)


## 建立 cloudflare worker

可以参考 开头的视频。代码如下。
Expand All @@ -116,6 +120,21 @@ addEventListener("fetch", (event) => {
为 worker 选择速度更快的 IP。
https://github.com/badafans/better-cloudflare-ip

## 使用 Environments 实现 多账户/多app Secrets 管理

文档介绍: https://docs.github.com/en/actions/deployment/using-environments-for-deployment

### 建立 Environments, 并添加 Secrets

1. 创建 Environments
![Environments](./readme-data/Environments.png)
2. 添加 Secrets
![EnvironmentsSercet](./readme-data/EnvironmentsSercet.png)

### 输入环境名字
**一定要确保环境名字是对的,要不然就会用主的Secrets。**
![EnvironmentsDeploy](./readme-data/EnvironmentsDeploy.png)

## VLESS websocket 客户端配置

### JSON
Expand Down
Binary file added readme-data/Environments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme-data/EnvironmentsDeploy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme-data/EnvironmentsSercet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a42be88

Please sign in to comment.