From cf531e3f09789af352ae0437782b0c8aa27c5be0 Mon Sep 17 00:00:00 2001 From: Jacky Date: Fri, 2 May 2025 12:08:55 +0800 Subject: [PATCH] chore: add cloud.nginxui.com --- app/src/language/ar/app.po | 4 ++-- app/src/language/de_DE/app.po | 4 ++-- app/src/language/en/app.po | 2 +- app/src/language/es/app.po | 4 ++-- app/src/language/fr_FR/app.po | 4 ++-- app/src/language/ja_JP/app.po | 2 +- app/src/language/ko_KR/app.po | 4 ++-- app/src/language/messages.pot | 2 +- app/src/language/pt_PT/app.po | 4 ++-- app/src/language/ru_RU/app.po | 4 ++-- app/src/language/tr_TR/app.po | 4 ++-- app/src/language/uk_UA/app.po | 2 +- app/src/language/vi_VN/app.po | 4 ++-- app/src/language/zh_CN/app.po | 4 ++-- app/src/language/zh_TW/app.po | 4 ++-- app/src/views/preference/tabs/HTTPSettings.vue | 2 +- docs/guide/config-http.md | 2 +- docs/guide/config-server.md | 2 +- docs/guide/install-script-linux.md | 2 +- docs/zh_CN/guide/config-http.md | 2 +- docs/zh_CN/guide/config-server.md | 2 +- docs/zh_CN/guide/install-script-linux.md | 2 +- docs/zh_TW/guide/config-http.md | 2 +- docs/zh_TW/guide/config-server.md | 2 +- docs/zh_TW/guide/install-script-linux.md | 2 +- install.sh | 4 ++-- internal/version/dev_build.go | 2 +- settings/server_v1_test.go | 7 ++++--- 28 files changed, 43 insertions(+), 42 deletions(-) diff --git a/app/src/language/ar/app.po b/app/src/language/ar/app.po index 878378a1..e62394fd 100644 --- a/app/src/language/ar/app.po +++ b/app/src/language/ar/app.po @@ -2066,8 +2066,8 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "للمستخدمين الصين: /https://mirror.ghproxy.com" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "للمستخدمين الصين: /https://cloud.nginxui.com" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/de_DE/app.po b/app/src/language/de_DE/app.po index 699f0f88..a66a29ad 100644 --- a/app/src/language/de_DE/app.po +++ b/app/src/language/de_DE/app.po @@ -2120,8 +2120,8 @@ msgid "For Chinese user" msgstr "Für chinesische Benutzer" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "Für chinesische Benutzer: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "Für chinesische Benutzer: https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/en/app.po b/app/src/language/en/app.po index 1e6d30c0..0a6f5920 100644 --- a/app/src/language/en/app.po +++ b/app/src/language/en/app.po @@ -1896,7 +1896,7 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" msgstr "" #: src/constants/errors/middleware.ts:4 diff --git a/app/src/language/es/app.po b/app/src/language/es/app.po index f79908d2..b7500a46 100644 --- a/app/src/language/es/app.po +++ b/app/src/language/es/app.po @@ -2082,8 +2082,8 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "Para usuario chino: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "Para usuario chino: https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/fr_FR/app.po b/app/src/language/fr_FR/app.po index c4a38254..1989e985 100644 --- a/app/src/language/fr_FR/app.po +++ b/app/src/language/fr_FR/app.po @@ -2135,8 +2135,8 @@ msgstr "Pour utilisateur chinois" #: src/views/preference/tabs/HTTPSettings.vue:19 #, fuzzy -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "Utilisateur chinois : https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "Utilisateur chinois : https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/ja_JP/app.po b/app/src/language/ja_JP/app.po index 42fe499c..4a23a6a5 100644 --- a/app/src/language/ja_JP/app.po +++ b/app/src/language/ja_JP/app.po @@ -1969,7 +1969,7 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" msgstr "" #: src/constants/errors/middleware.ts:4 diff --git a/app/src/language/ko_KR/app.po b/app/src/language/ko_KR/app.po index 75ee06fd..4f0ee3a4 100644 --- a/app/src/language/ko_KR/app.po +++ b/app/src/language/ko_KR/app.po @@ -2055,8 +2055,8 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "중국 사용자를 위해: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "중국 사용자를 위해: https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/messages.pot b/app/src/language/messages.pot index 09b63453..d4b95035 100644 --- a/app/src/language/messages.pot +++ b/app/src/language/messages.pot @@ -1904,7 +1904,7 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" msgstr "" #: src/constants/errors/middleware.ts:4 diff --git a/app/src/language/pt_PT/app.po b/app/src/language/pt_PT/app.po index 0863cf4b..a3bb44e8 100644 --- a/app/src/language/pt_PT/app.po +++ b/app/src/language/pt_PT/app.po @@ -2054,8 +2054,8 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "Para Utilizador Chinês: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "Para Utilizador Chinês: https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/ru_RU/app.po b/app/src/language/ru_RU/app.po index 27c09852..d3ad7a93 100644 --- a/app/src/language/ru_RU/app.po +++ b/app/src/language/ru_RU/app.po @@ -2060,8 +2060,8 @@ msgid "For Chinese user" msgstr "Для китайскоязычных пользователей" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "Для китайских пользователей: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "Для китайских пользователей: https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/tr_TR/app.po b/app/src/language/tr_TR/app.po index b65f96bc..238275a6 100644 --- a/app/src/language/tr_TR/app.po +++ b/app/src/language/tr_TR/app.po @@ -2094,8 +2094,8 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "Çinli kullanıcılar için: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "Çinli kullanıcılar için: https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/uk_UA/app.po b/app/src/language/uk_UA/app.po index d698059c..8b0be5f1 100644 --- a/app/src/language/uk_UA/app.po +++ b/app/src/language/uk_UA/app.po @@ -2036,7 +2036,7 @@ msgid "For Chinese user" msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" msgstr "" #: src/constants/errors/middleware.ts:4 diff --git a/app/src/language/vi_VN/app.po b/app/src/language/vi_VN/app.po index c5a5b0ae..055c1920 100644 --- a/app/src/language/vi_VN/app.po +++ b/app/src/language/vi_VN/app.po @@ -2098,8 +2098,8 @@ msgstr "" #: src/views/preference/tabs/HTTPSettings.vue:19 #, fuzzy -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "Người dùng Trung Quốc: https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "Người dùng Trung Quốc: https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 #, fuzzy diff --git a/app/src/language/zh_CN/app.po b/app/src/language/zh_CN/app.po index 81dd984c..acd48e96 100644 --- a/app/src/language/zh_CN/app.po +++ b/app/src/language/zh_CN/app.po @@ -1917,8 +1917,8 @@ msgid "For Chinese user" msgstr "中国用户" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "中国用户:https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "中国用户:https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 msgid "Form parse failed" diff --git a/app/src/language/zh_TW/app.po b/app/src/language/zh_TW/app.po index d65cdef8..10fb4358 100644 --- a/app/src/language/zh_TW/app.po +++ b/app/src/language/zh_TW/app.po @@ -1954,8 +1954,8 @@ msgid "For Chinese user" msgstr "針對中國大陸使用者" #: src/views/preference/tabs/HTTPSettings.vue:19 -msgid "For Chinese user: https://mirror.ghproxy.com/" -msgstr "中國使用者:https://mirror.ghproxy.com/" +msgid "For Chinese user: https://cloud.nginxui.com/" +msgstr "中國使用者:https://cloud.nginxui.com/" #: src/constants/errors/middleware.ts:4 msgid "Form parse failed" diff --git a/app/src/views/preference/tabs/HTTPSettings.vue b/app/src/views/preference/tabs/HTTPSettings.vue index b86e908f..e2fb6566 100644 --- a/app/src/views/preference/tabs/HTTPSettings.vue +++ b/app/src/views/preference/tabs/HTTPSettings.vue @@ -16,7 +16,7 @@ const { data, errors } = storeToRefs(systemSettingsStore) > diff --git a/docs/guide/config-http.md b/docs/guide/config-http.md index cff39d61..5d53fdee 100644 --- a/docs/guide/config-http.md +++ b/docs/guide/config-http.md @@ -4,7 +4,7 @@ - Type: `string` - Version: `>= v2.0.0-beta.37` -- Suggestion: `https://mirror.ghproxy.com/` +- Suggestion: `https://cloud.nginxui.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/config-server.md b/docs/guide/config-server.md index 94e13a86..5717dbe2 100644 --- a/docs/guide/config-server.md +++ b/docs/guide/config-server.md @@ -162,7 +162,7 @@ CADir needs to comply with the `RFC 8555` standard. ## GithubProxy - Type: `string` -- Suggestion: `https://mirror.ghproxy.com/` +- Suggestion: `https://cloud.nginxui.com/` ::: warning Deprecated in `v2.0.0-beta.37`, please use `Http.GithubProxy` instead. diff --git a/docs/guide/install-script-linux.md b/docs/guide/install-script-linux.md index 70fb2273..604e635f 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://mirror.ghproxy.com/` | +| `-r, --reverse-proxy` | Download through a reverse proxy server (`string`)
e.g., `-r https://cloud.nginxui.com/` | ### Quick Usage diff --git a/docs/zh_CN/guide/config-http.md b/docs/zh_CN/guide/config-http.md index 29763935..9f5d132f 100644 --- a/docs/zh_CN/guide/config-http.md +++ b/docs/zh_CN/guide/config-http.md @@ -3,7 +3,7 @@ ## GithubProxy - 版本: `>= v2.0.0-beta.37` - 类型:`string` -- 建议:`https://mirror.ghproxy.com/` +- 建议:`https://cloud.nginxui.com/` - 对于可能在从 Github 下载资源时遇到困难的用户(如在中国大陆),此选项允许他们为 github.com 设置代理,以提高可访问性。 diff --git a/docs/zh_CN/guide/config-server.md b/docs/zh_CN/guide/config-server.md index 950ff1be..bb4835e1 100644 --- a/docs/zh_CN/guide/config-server.md +++ b/docs/zh_CN/guide/config-server.md @@ -151,7 +151,7 @@ JWT 是一种用于验证用户身份的标准,它可以在用户登录后生 ## GithubProxy - 类型:`string` -- 建议:`https://mirror.ghproxy.com/` +- 建议:`https://cloud.nginxui.com/` ::: warning 警告 已在 `v2.0.0-beta.37` 中废弃,请使用 `Http.GithubProxy` 替代。 diff --git a/docs/zh_CN/guide/install-script-linux.md b/docs/zh_CN/guide/install-script-linux.md index 4785c02c..5c1afbc3 100644 --- a/docs/zh_CN/guide/install-script-linux.md +++ b/docs/zh_CN/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://mirror.ghproxy.com/` | +| `-r, --reverse-proxy` | 通过反向代理服务器下载 (`string`)
例如:`-r https://cloud.nginxui.com/` | ### 使用反向代理加速 diff --git a/docs/zh_TW/guide/config-http.md b/docs/zh_TW/guide/config-http.md index 1c3dd880..0779e87e 100644 --- a/docs/zh_TW/guide/config-http.md +++ b/docs/zh_TW/guide/config-http.md @@ -3,7 +3,7 @@ ## GithubProxy - 版本:`>= v2.0.0-beta.37` - 類型:`string` -- 建議:`https://mirror.ghproxy.com/` +- 建議:`https://cloud.nginxui.com/` 對於可能在從 Github 下載資源時遇到困難的使用者(如在中國大陸),此選項允許他們為 github.com 設定代理,以提高可存取性。 diff --git a/docs/zh_TW/guide/config-server.md b/docs/zh_TW/guide/config-server.md index 05e23371..0da3eabe 100644 --- a/docs/zh_TW/guide/config-server.md +++ b/docs/zh_TW/guide/config-server.md @@ -148,7 +148,7 @@ JWT 是一種用於驗證使用者身份的標準,它可以在使用者登入 ## GithubProxy - 類型:`string` -- 建議:`https://mirror.ghproxy.com/` +- 建議:`https://cloud.nginxui.com/` ::: warning 警告 已在 `v2.0.0-beta.37` 中廢棄,請使用 `Http.GithubProxy` 取代。 diff --git a/docs/zh_TW/guide/install-script-linux.md b/docs/zh_TW/guide/install-script-linux.md index 3d5cc502..cc7c85df 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://mirror.ghproxy.com/` | +| `-r, --reverse-proxy` | 透過反向代理伺服器下載 (`string`)
例如:`-r https://cloud.nginxui.com/` | ### 快速使用 diff --git a/install.sh b/install.sh index d020a073..b6f1a7d9 100644 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ PROXY='' # --reverse-proxy ? # You can set this variable whatever you want in shell session right before running this script by issuing: -# export GH_PROXY='https://mirror.ghproxy.com/' +# export GH_PROXY='https://cloud.nginxui.com/' RPROXY=$GH_PROXY # --purge @@ -382,7 +382,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://mirror.ghproxy.com/' + echo ' -r, --reverse-proxy Download through a reverse proxy server, e.g., -r https://cloud.nginxui.com/' echo ' remove:' echo ' --purge Remove all the Nginx UI files, include logs, configs, etc' exit 0 diff --git a/internal/version/dev_build.go b/internal/version/dev_build.go index a433e8a8..cf89d682 100644 --- a/internal/version/dev_build.go +++ b/internal/version/dev_build.go @@ -12,7 +12,7 @@ import ( const ( GithubDevCommitAPI = "https://api.github.com/repos/0xJacky/nginx-ui/commits/dev?per_page=1" - CloudflareWorkerAPI = "https://nginx-ui-proxy.langgood.com" + CloudflareWorkerAPI = "https://cloud.nginxui.com" ) type TCommit struct { diff --git a/settings/server_v1_test.go b/settings/server_v1_test.go index 8276024a..3560fb45 100644 --- a/settings/server_v1_test.go +++ b/settings/server_v1_test.go @@ -1,10 +1,11 @@ package settings import ( - "github.com/stretchr/testify/assert" - "github.com/uozi-tech/cosy/logger" "os" "testing" + + "github.com/stretchr/testify/assert" + "github.com/uozi-tech/cosy/logger" ) func TestDeprecatedEnvMigration(t *testing.T) { @@ -60,7 +61,7 @@ HTTPChallengePort = 9181 StartCmd = bash Database = database CADir = /test -GithubProxy = https://mirror.ghproxy.com/ +GithubProxy = https://cloud.nginxui.com/ Secret = newSecret Demo = false PageSize = 20