Skip to content

Commit 3be235f

Browse files
committed
chore: update docs for proxy in Mainland China
1 parent 03b0201 commit 3be235f

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

docs/zh_CN/guide/install-script-linux.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,20 @@ install.sh install [OPTIONS]
2222
| `-p, --proxy <url>` | 通过代理服务器下载 (`string`)<br/>例如:`-p http://127.0.0.1:8118``-p socks5://127.0.0.1:1080` |
2323
| `-r, --reverse-proxy` | 通过反向代理服务器下载 (`string`)<br/>例如:`-r https://mirror.ghproxy.com/` |
2424

25+
### 使用反向代理加速
26+
27+
如果您在中国大陆,可能会遇到 GitHub 的网络问题。您可以通过以下命令设置代理服务器下载 Nginx UI,以加快下载速度。
28+
29+
```bash
30+
export GH_PROXY=https://ghfast.top/
31+
```
32+
33+
当以上地址不可用时,请检视 [GitHub Proxy](https://ghproxy.link/) 获得最新地址,或根据实际情况选择其他代理。
2534

2635
### 快速使用
2736

2837
```shell
29-
bash -c "$(curl -L https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install -r https://mirror.ghproxy.com/
38+
bash -c "$(curl -L ${GH_PROXY}https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install
3039
```
3140

3241
一键安装脚本默认设置的监听端口为 `9000`,HTTP Challenge 端口默认为 `9180`。如果有端口冲突,请手动修改 `/usr/local/etc/nginx-ui/app.ini`
@@ -56,12 +65,12 @@ install.sh remove [OPTIONS]
5665

5766
```shell [移除]
5867
# 删除 Nginx UI,但不包括配置和数据库文件
59-
bash -c "$(curl -L https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ remove
68+
bash -c "$(curl -L ${GH_PROXY}https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ remove
6069
```
6170

6271
```shell [清除]
6372
# 删除所有 Nginx UI 文件,包括配置和数据库文件
64-
bash -c "$(curl -L https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ remove --purge
73+
bash -c "$(curl -L ${GH_PROXY}https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ remove --purge
6574
```
6675

6776
:::
@@ -81,7 +90,7 @@ install.sh help
8190
### 快速使用
8291

8392
```shell
84-
bash -c "$(curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ help
93+
bash -c "$(curl -L -s ${GH_PROXY}https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ help
8594
```
8695

8796
## 控制服务

install.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ LOCAL_FILE=''
2626
PROXY=''
2727

2828
# --reverse-proxy ?
29-
RPROXY=""
29+
# You can set this variable whatever you want in shell session right before running this script by issuing:
30+
# export GH_PROXY='https://mirror.ghproxy.com/'
31+
RPROXY=$GH_PROXY
3032

3133
# --purge
3234
PURGE='0'

0 commit comments

Comments
 (0)