diff --git a/README-zh_CN.md b/README-zh_CN.md index 3d3b0431..7e01ec4e 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -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 反向代理配置示例 diff --git a/app/src/language/en/app.po b/app/src/language/en/app.po index 64b57c3b..ab225dbb 100644 --- a/app/src/language/en/app.po +++ b/app/src/language/en/app.po @@ -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 diff --git a/app/src/language/es/app.po b/app/src/language/es/app.po index 4e342102..a4acf669 100644 --- a/app/src/language/es/app.po +++ b/app/src/language/es/app.po @@ -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" diff --git a/app/src/language/fr_FR/app.po b/app/src/language/fr_FR/app.po index 9d857a75..5583acae 100644 --- a/app/src/language/fr_FR/app.po +++ b/app/src/language/fr_FR/app.po @@ -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" diff --git a/app/src/language/messages.pot b/app/src/language/messages.pot index 00836433..9feb37ae 100644 --- a/app/src/language/messages.pot +++ b/app/src/language/messages.pot @@ -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 diff --git a/app/src/language/ru_RU/app.po b/app/src/language/ru_RU/app.po index 925e42bd..7f37a25e 100644 --- a/app/src/language/ru_RU/app.po +++ b/app/src/language/ru_RU/app.po @@ -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 diff --git a/app/src/language/vi_VN/app.po b/app/src/language/vi_VN/app.po index 6b76c127..6e92444a 100644 --- a/app/src/language/vi_VN/app.po +++ b/app/src/language/vi_VN/app.po @@ -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" diff --git a/app/src/language/zh_CN/app.po b/app/src/language/zh_CN/app.po index 1d4cf903..870a7d51 100644 --- a/app/src/language/zh_CN/app.po +++ b/app/src/language/zh_CN/app.po @@ -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" diff --git a/app/src/language/zh_TW/app.po b/app/src/language/zh_TW/app.po index bd7bd75d..8b33656a 100644 --- a/app/src/language/zh_TW/app.po +++ b/app/src/language/zh_TW/app.po @@ -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" diff --git a/app/src/version.json b/app/src/version.json index 93a9366b..88f25441 100644 --- a/app/src/version.json +++ b/app/src/version.json @@ -1 +1 @@ -{"version":"2.0.0-beta.9","build_id":102,"total_build":306} \ No newline at end of file +{"version":"2.0.0-beta.9","build_id":103,"total_build":307} \ No newline at end of file diff --git a/app/src/views/preference/BasicSettings.vue b/app/src/views/preference/BasicSettings.vue index 561a08e9..3f31d3d3 100644 --- a/app/src/views/preference/BasicSettings.vue +++ b/app/src/views/preference/BasicSettings.vue @@ -33,7 +33,7 @@ const data: IData = inject('data') as IData diff --git a/app/version.json b/app/version.json index 93a9366b..88f25441 100644 --- a/app/version.json +++ b/app/version.json @@ -1 +1 @@ -{"version":"2.0.0-beta.9","build_id":102,"total_build":306} \ No newline at end of file +{"version":"2.0.0-beta.9","build_id":103,"total_build":307} \ No newline at end of file diff --git a/docs/guide/config-server.md b/docs/guide/config-server.md index d74d4a73..f8199d1d 100644 --- a/docs/guide/config-server.md +++ b/docs/guide/config-server.md @@ -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. diff --git a/docs/guide/install-script-linux.md b/docs/guide/install-script-linux.md index 84d358fa..b2b58d68 100644 --- a/docs/guide/install-script-linux.md +++ b/docs/guide/install-script-linux.md @@ -21,7 +21,7 @@ install.sh install [OPTIONS] |-----------------------|-----------------------------------------------------------------------------------------------------------------| | `-l, --local ` | Install Nginx UI from a local file (`string`) | | `-p, --proxy ` | Download through a proxy server (`string`)
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`)
e.g., `-r https://ghproxy.com/` | +| `-r, --reverse-proxy` | Download through a reverse proxy server (`string`)
e.g., `-r https://mirror.ghproxy.com/` | ### Quick Usage diff --git a/docs/zh_CN/guide/config-server.md b/docs/zh_CN/guide/config-server.md index 9de1646a..892704c4 100644 --- a/docs/zh_CN/guide/config-server.md +++ b/docs/zh_CN/guide/config-server.md @@ -66,6 +66,6 @@ Nginx UI 服务器监听端口。此选项用于配置 Nginx UI 服务器监听 ## GithubProxy - 类型:`string` -- 建议:`https://ghproxy.com/` +- 建议:`https://mirror.ghproxy.com/` 对于可能在从 Github 下载资源时遇到困难的用户(如在中国大陆),此选项允许他们为 github.com 设置代理,以提高可访问性。 diff --git a/docs/zh_CN/guide/install-script-linux.md b/docs/zh_CN/guide/install-script-linux.md index dfe39ee2..9144e15b 100644 --- a/docs/zh_CN/guide/install-script-linux.md +++ b/docs/zh_CN/guide/install-script-linux.md @@ -20,13 +20,13 @@ install.sh install [OPTIONS] |-----------------------|---------------------------------------------------------------------------------------| | `-l, --local ` | 从本地文件安装 Nginx UI (`string`) | | `-p, --proxy ` | 通过代理服务器下载 (`string`)
例如:`-p http://127.0.0.1:8118` 或 `-p socks5://127.0.0.1:1080` | -| `-r, --reverse-proxy` | 通过反向代理服务器下载 (`string`)
例如:`-r https://ghproxy.com/` | +| `-r, --reverse-proxy` | 通过反向代理服务器下载 (`string`)
例如:`-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`, @@ -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 ``` ::: @@ -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 ``` ## 控制服务 diff --git a/docs/zh_TW/guide/config-server.md b/docs/zh_TW/guide/config-server.md index 21020e2b..e37f1bfd 100644 --- a/docs/zh_TW/guide/config-server.md +++ b/docs/zh_TW/guide/config-server.md @@ -66,6 +66,6 @@ Nginx UI 監聽埠。此選項用於配置 Nginx UI 伺服器監聽傳入 HTTP ## GithubProxy - 型別:`string` -- 建議:`https://ghproxy.com/` +- 建議:`https://mirror.ghproxy.com/` 對於可能在從 Github 下載資源時遇到困難的使用者(如在中國大陸),此選項允許他們為 github.com 設定代理,以提高可訪問性。 diff --git a/docs/zh_TW/guide/install-script-linux.md b/docs/zh_TW/guide/install-script-linux.md index 19988fbe..77b037b1 100644 --- a/docs/zh_TW/guide/install-script-linux.md +++ b/docs/zh_TW/guide/install-script-linux.md @@ -20,7 +20,7 @@ install.sh install [OPTIONS] |-----------------------|---------------------------------------------------------------------------------------| | `-l, --local ` | 從本地檔案安裝 Nginx UI (`string`) | | `-p, --proxy ` | 透過代理伺服器下載 (`string`)
例如:`-p http://127.0.0.1:8118` 或 `-p socks5://127.0.0.1:1080` | -| `-r, --reverse-proxy` | 透過反向代理伺服器下載 (`string`)
例如:`-r https://ghproxy.com/` | +| `-r, --reverse-proxy` | 透過反向代理伺服器下載 (`string`)
例如:`-r https://mirror.ghproxy.com/` | ### 快速使用 diff --git a/install.sh b/install.sh index ca625361..eb968cf3 100644 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/test/acme_test.go b/test/acme_test.go index 8bcef900..3371aad3 100644 --- a/test/acme_test.go +++ b/test/acme_test.go @@ -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)