Skip to content

Commit

Permalink
chore: replace ghproxy.com with mirror.ghproxy.com
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Dec 21, 2023
1 parent 5a19133 commit 626196a
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,20 +239,20 @@ go build -o nginx-ui -v main.go
**安装或升级**

```shell
bash <(curl -L -s https://ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install -r https://ghproxy.com/
bash <(curl -L -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install -r https://mirror.ghproxy.com/
```
一键安装脚本默认设置的监听端口为 `9000`,HTTP Challenge 端口默认为 `9180`,如果出现端口冲突请进入 `/usr/local/etc/nginx-ui/app.ini` 修改,并使用 `systemctl restart nginx-ui` 重启 Nginx UI 服务。

**卸载 Nginx UI 但保留配置和数据库文件**

```shell
bash <(curl -L -s https://ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove
bash <(curl -L -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove
```

### 更多用法

````shell
bash <(curl -L -s https://ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) help
bash <(curl -L -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) help
````

## Nginx 反向代理配置示例
Expand Down
2 changes: 1 addition & 1 deletion app/src/language/en/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ msgid "Check again"
msgstr ""

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr ""

#: src/language/constants.ts:17
Expand Down
4 changes: 2 additions & 2 deletions app/src/language/es/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ msgid "Check again"
msgstr "Intentar nuevamente"

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgstr "Usuario chino: https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr "Usuario chino: https://mirror.ghproxy.com/"

#: src/language/constants.ts:17
msgid "Cleaning environment variables"
Expand Down
4 changes: 2 additions & 2 deletions app/src/language/fr_FR/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ msgid "Check again"
msgstr "Revérifier"

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgstr "Utilisateur chinois : https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr "Utilisateur chinois : https://mirror.ghproxy.com/"

#: src/language/constants.ts:17
msgid "Cleaning environment variables"
Expand Down
2 changes: 1 addition & 1 deletion app/src/language/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ msgid "Check again"
msgstr ""

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr ""

#: src/language/constants.ts:17
Expand Down
2 changes: 1 addition & 1 deletion app/src/language/ru_RU/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ msgid "Check again"
msgstr "Проверить повторно"

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr ""

#: src/language/constants.ts:17
Expand Down
4 changes: 2 additions & 2 deletions app/src/language/vi_VN/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ msgid "Check again"
msgstr "Kiểm tra lại"

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgstr "Người dùng Trung Quốc: https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr "Người dùng Trung Quốc: https://mirror.ghproxy.com/"

#: src/language/constants.ts:17
msgid "Cleaning environment variables"
Expand Down
4 changes: 2 additions & 2 deletions app/src/language/zh_CN/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ msgid "Check again"
msgstr "重新检查"

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgstr "中国用户:https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr "中国用户:https://mirror.ghproxy.com/"

#: src/language/constants.ts:17
msgid "Cleaning environment variables"
Expand Down
4 changes: 2 additions & 2 deletions app/src/language/zh_TW/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ msgid "Check again"
msgstr "再次檢查"

#: src/views/preference/BasicSettings.vue:36
msgid "Chinese user: https://ghproxy.com/"
msgstr "中國使用者:https://ghproxy.com/"
msgid "Chinese user: https://mirror.ghproxy.com/"
msgstr "中國使用者:https://mirror.ghproxy.com/"

#: src/language/constants.ts:17
msgid "Cleaning environment variables"
Expand Down
2 changes: 1 addition & 1 deletion app/src/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"2.0.0-beta.9","build_id":102,"total_build":306}
{"version":"2.0.0-beta.9","build_id":103,"total_build":307}
2 changes: 1 addition & 1 deletion app/src/views/preference/BasicSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const data: IData = inject('data') as IData
<AFormItem :label="$gettext('Github Proxy')">
<AInput
v-model:value="data.server.github_proxy"
:placeholder="$gettext('Chinese user: https://ghproxy.com/')"
:placeholder="$gettext('Chinese user: https://mirror.ghproxy.com/')"
/>
</AFormItem>
<AFormItem :label="$gettext('CADir')">
Expand Down
2 changes: 1 addition & 1 deletion app/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"2.0.0-beta.9","build_id":102,"total_build":306}
{"version":"2.0.0-beta.9","build_id":103,"total_build":307}
2 changes: 1 addition & 1 deletion docs/guide/config-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CADir needs to comply with the `RFC 8555` standard.
## GithubProxy

- Type: `string`
- Suggestion: `https://ghproxy.com/`
- Suggestion: `https://mirror.ghproxy.com/`

For users who may experience difficulties downloading resources from Github (such as in mainland China), this option
allows them to set a proxy for github.com to improve accessibility.
2 changes: 1 addition & 1 deletion docs/guide/install-script-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install.sh install [OPTIONS]
|-----------------------|-----------------------------------------------------------------------------------------------------------------|
| `-l, --local <file>` | Install Nginx UI from a local file (`string`) |
| `-p, --proxy <url>` | Download through a proxy server (`string`)<br/>e.g., `-p http://127.0.0.1:8118` or `-p socks5://127.0.0.1:1080` |
| `-r, --reverse-proxy` | Download through a reverse proxy server (`string`)<br/>e.g., `-r https://ghproxy.com/` |
| `-r, --reverse-proxy` | Download through a reverse proxy server (`string`)<br/>e.g., `-r https://mirror.ghproxy.com/` |


### Quick Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_CN/guide/config-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ Nginx UI 服务器监听端口。此选项用于配置 Nginx UI 服务器监听
## GithubProxy

- 类型:`string`
- 建议:`https://ghproxy.com/`
- 建议:`https://mirror.ghproxy.com/`

对于可能在从 Github 下载资源时遇到困难的用户(如在中国大陆),此选项允许他们为 github.com 设置代理,以提高可访问性。
10 changes: 5 additions & 5 deletions docs/zh_CN/guide/install-script-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ install.sh install [OPTIONS]
|-----------------------|---------------------------------------------------------------------------------------|
| `-l, --local <file>` | 从本地文件安装 Nginx UI (`string`) |
| `-p, --proxy <url>` | 通过代理服务器下载 (`string`)<br/>例如:`-p http://127.0.0.1:8118``-p socks5://127.0.0.1:1080` |
| `-r, --reverse-proxy` | 通过反向代理服务器下载 (`string`)<br/>例如:`-r https://ghproxy.com/` |
| `-r, --reverse-proxy` | 通过反向代理服务器下载 (`string`)<br/>例如:`-r https://mirror.ghproxy.com/` |


### 快速使用

```shell
bash <(curl -L -s https://ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install -r https://ghproxy.com/
bash <(curl -L -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install -r https://mirror.ghproxy.com/
```

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

```shell [移除]
# 删除 Nginx UI,但不包括配置和数据库文件
bash <(curl -L -s https://ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove
bash <(curl -L -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove
```

```shell [清除]
# 删除所有 Nginx UI 文件,包括配置和数据库文件
bash <(curl -L -s https://ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove --purge
bash <(curl -L -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove --purge
```

:::
Expand All @@ -81,7 +81,7 @@ install.sh help
### 快速使用

```shell
bash <(curl -L -s https://ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) help
bash <(curl -L -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) help
```

## 控制服务
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_TW/guide/config-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ Nginx UI 監聽埠。此選項用於配置 Nginx UI 伺服器監聽傳入 HTTP
## GithubProxy

- 型別:`string`
- 建議:`https://ghproxy.com/`
- 建議:`https://mirror.ghproxy.com/`

對於可能在從 Github 下載資源時遇到困難的使用者(如在中國大陸),此選項允許他們為 github.com 設定代理,以提高可訪問性。
2 changes: 1 addition & 1 deletion docs/zh_TW/guide/install-script-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install.sh install [OPTIONS]
|-----------------------|---------------------------------------------------------------------------------------|
| `-l, --local <file>` | 從本地檔案安裝 Nginx UI (`string`) |
| `-p, --proxy <url>` | 透過代理伺服器下載 (`string`)<br/>例如:`-p http://127.0.0.1:8118``-p socks5://127.0.0.1:1080` |
| `-r, --reverse-proxy` | 透過反向代理伺服器下載 (`string`)<br/>例如:`-r https://ghproxy.com/` |
| `-r, --reverse-proxy` | 透過反向代理伺服器下載 (`string`)<br/>例如:`-r https://mirror.ghproxy.com/` |


### 快速使用
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ show_help() {
echo ' install:'
echo ' -l, --local Install Nginx UI from a local file'
echo ' -p, --proxy Download through a proxy server, e.g., -p http://127.0.0.1:8118 or -p socks5://127.0.0.1:1080'
echo ' -r, --reverse-proxy Download through a reverse proxy server, e.g., -r https://ghproxy.com/'
echo ' -r, --reverse-proxy Download through a reverse proxy server, e.g., -r https://mirror.ghproxy.com/'
echo ' remove:'
echo ' --purge Remove all the Nginx UI files, include logs, configs, etc'
exit 0
Expand Down
2 changes: 1 addition & 1 deletion test/acme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestAcme(t *testing.T) {

fileString := string(file)
fileString = strings.Replace(fileString, "https://raw.githubusercontent.com",
"https://ghproxy.com/https://raw.githubusercontent.com", -1)
"https://mirror.ghproxy.com/https://raw.githubusercontent.com", -1)

_ = ioutil.WriteFile("../tmp/acme.sh", []byte(fileString), 0644)

Expand Down

0 comments on commit 626196a

Please sign in to comment.