mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
chore: replace ghproxy.com with mirror.ghproxy.com
This commit is contained in:
parent
5a19133254
commit
626196a239
20 changed files with 31 additions and 31 deletions
|
@ -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 反向代理配置示例
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}
|
|
@ -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')">
|
||||
|
|
|
@ -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}
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -66,6 +66,6 @@ Nginx UI 服务器监听端口。此选项用于配置 Nginx UI 服务器监听
|
|||
## GithubProxy
|
||||
|
||||
- 类型:`string`
|
||||
- 建议:`https://ghproxy.com/`
|
||||
- 建议:`https://mirror.ghproxy.com/`
|
||||
|
||||
对于可能在从 Github 下载资源时遇到困难的用户(如在中国大陆),此选项允许他们为 github.com 设置代理,以提高可访问性。
|
||||
|
|
|
@ -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`,
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
## 控制服务
|
||||
|
|
|
@ -66,6 +66,6 @@ Nginx UI 監聽埠。此選項用於配置 Nginx UI 伺服器監聽傳入 HTTP
|
|||
## GithubProxy
|
||||
|
||||
- 型別:`string`
|
||||
- 建議:`https://ghproxy.com/`
|
||||
- 建議:`https://mirror.ghproxy.com/`
|
||||
|
||||
對於可能在從 Github 下載資源時遇到困難的使用者(如在中國大陸),此選項允許他們為 github.com 設定代理,以提高可訪問性。
|
||||
|
|
|
@ -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/` |
|
||||
|
||||
|
||||
### 快速使用
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue