Skip to content

Commit 8f85605

Browse files
committed
Update README
1 parent 9ea28ae commit 8f85605

3 files changed

Lines changed: 27 additions & 19 deletions

File tree

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[README](README.md) | [中文文档](README_zh.md)
44

5-
SCFProxy is a tool that implements multiple proxies based on cloud functions and API gateway functions provided by cloud
6-
providers.
5+
SCFProxy is a tool to implement HTTP proxy, SOCKS proxy, and reverse proxy based on cloud function and API gateway
6+
provided by several cloud service providers.
77

88
# Installation
99

@@ -81,15 +81,15 @@ and then filling the corresponding role ARN into the ` sdk.toml` file.
8181

8282
## Query
8383

84-
The `scfproxy list` accepts five arguments `provider`, `region`, `http`, `socks`, `reverse`.
84+
The `scfproxy list` accepts the following five parameters.
8585

86-
The `provider` parameter lists the currently supported cloud providers and can be filtered by
87-
the `-m [http|socks|reverse]` parameter to find the providers that support a certain proxy.
88-
89-
The `region` argument is used to list the regions where the cloud provider can be deployed, and the `-p providers`
90-
parameter is used to specify the cloud provider
91-
92-
The `http`, `socks`, `reverse` arguments are used to list the currently deployed proxies
86+
* `provider` lists currently supported cloud providers and can be filtered by the `-m [http|socks|reverse]` parameter to
87+
find the providers that support a certain proxy.
88+
* `region` list regions where cloud provider can be deployed, and the `-p providers` parameter is used to specify the
89+
cloud provider
90+
* `http` Lists deployed HTTP proxies
91+
* `socks` Lists deployed SOCKS proxies
92+
* `reverse` List deployed reverse proxies
9393

9494
## HTTP proxy
9595

@@ -144,6 +144,10 @@ equivalent to `0.0.0.0:port`
144144
Running HTTP proxy will load the records in `~/.config/scfproxy/http.json`, and if there are multiple deployed cloud
145145
functions (regardless of provider), each HTTP request will randomly pick one of them to proxy.
146146

147+
#### Use effect
148+
149+
![http](img/http.jpg)
150+
147151
### Clear
148152

149153
```console
@@ -186,7 +190,7 @@ randomly pick one of the connections from the cloud function to proxy.
186190
> The current timeout for socks proxy functions is 15m, so if you use socks proxy for a long connection such as mysql
187191
> connection, you need to schedule it by yourself to avoid accidental connection disconnection when the time is up.
188192
189-
### Usage effect
193+
#### Use effect
190194

191195
**Long connections**
192196

README_zh.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SCFProxy
22

3-
SCFProxy 是一个基于云服务商提供的云函数及 API 网关功能实现多种代理的工具
3+
SCFProxy 是一个基于多个云服务商提供的云函数及 API 网关实现 HTTP 代理、SOCKS 代理、反向代理的工具
44

55
# 安装
66

@@ -75,13 +75,13 @@ AWS 需要下述凭证:
7575

7676
## 查询
7777

78-
`scfproxy list` 接受 `provider`, `region`, `http`, `socks`, `reverse` 五种参数。
78+
`scfproxy list` 接受以下五种参数:
7979

80-
`provider` 参数列出目前支持的云厂商,可通过 `-m [http|socks|reverse]` 参数过滤出支持某种代理的厂商。
81-
82-
`region` 参数用于列出云厂商可部署的区域,需使用 `-p providers` 指定需要查看的云厂商
83-
84-
`http`, `socks`, `reverse` 参数用于列出目前已经部署的代理
80+
* `provider` 用于列出目前支持的云厂商,可通过 `-m [http|socks|reverse]` 参数过滤出支持某种代理的厂商。
81+
* `region` 用于列出云厂商可部署的区域,需使用 `-p providers` 指定需要查看的云厂商
82+
* `http` 列出已部署的 HTTP 代理
83+
* `socks` 列出已部署的 SOCKS 代理
84+
* `reverse` 列出已部署的 反向代理
8585

8686
## HTTP 代理
8787

@@ -131,6 +131,10 @@ scfproxy http -l address [-c cert_path] [-k key_path]
131131
HTTP 代理运行将读取 `~/.config/scfproxy/http.json` 中的记录,如果存在多个已部署的云函数(不区分厂商),每个 HTTP
132132
请求将随机挑选其中的云函数进行代理。
133133

134+
#### 使用效果
135+
136+
![http](img/http.jpg)
137+
134138
### 清理
135139

136140
```console
@@ -171,7 +175,7 @@ socks 命令需要加载 `sdk.toml` 用于触发函数,及部署后生成的 `
171175
> 目前 socks 代理部署的函数超时时间为 15m,因此如果将 socks 代理用于一个长连接如 mysql 连接,需自行安排好时间,避免时间一到导致连接意外断开。
172176
>
173177
174-
### 使用效果
178+
#### 使用效果
175179

176180
**长连接**
177181

img/http.jpg

210 KB
Loading

0 commit comments

Comments
 (0)