Skip to content

Commit

Permalink
new reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Jun 16, 2024
1 parent 6a91423 commit 5169229
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- _coverpage.md -->

![logo](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_logo_trans.png)
![logo](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_logo_trans.png)

# 0.6.x

Expand Down
4 changes: 2 additions & 2 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ $HOME/.vmr/vmr.sh or $HOME/.vmr/vmr.fish
Lots of resources required by VMR are from github, which seems to be blocked in China. Solutions are:

- Set your own proxy with command **vmr sp "http://localhost:xxx or socks5://localhost:xxx"**.
- Set reverse proxy provided by VMR with command **vmr sr "https://gvc.1710717.xyz/proxy/"**.
- Set reverse proxy provided by VMR with command **vmr sr "https://proxy.vmr.us.kg/proxy/"**.
- For SDKs using conda, you can set other mirrors instead of the official one, such as [tsinghua](https://mirror.tuna.tsinghua.edu.cn/help/anaconda/?eqid=b45767b90013072c00000005649051db).

if a proxy or reverse proxy is added, and VMR still respond slowly, you can try to modify the **VersionHostUrl** as **https://gitee.com/moqsien/vsources/raw/main** in config file of VMR.


### 5. What is reverse proxy?

**https://gvc.1710717.xyz/proxy/** is deployed on CloudFlare for github accelerations. It's totally free.
**https://proxy.vmr.us.kg/proxy/** is deployed on CloudFlare for github accelerations. It's totally free.

You can also deploy your own reverse proxy according to this [repo](https://github.com/gaboolic/cloudflare-reverse-proxy).

Expand Down
4 changes: 2 additions & 2 deletions docs/flow.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Data flow

<!-- https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install.png -->
![vmr_flow.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_flow.png)
<!-- https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install.png -->
![vmr_flow.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_flow.png)

- [vcollector](https://github.com/gvcgo/vcollector) collects version info for SDKs and uploads the results to repo **vsources**.
- [vsources](https://github.com/gvcgo/vsources) holds the version info for SDKs.
Expand Down
2 changes: 1 addition & 1 deletion docs/gallery.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- Demo

![linux.gif](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_preview.gif)
![linux.gif](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_preview.gif)
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Introduction

<div align=center><img src="https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_wordcloud.png" width="70%"></div>
<div align=center><img src="https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_wordcloud.png" width="70%"></div>


**VMR** is a simple, cross-platform, and well-designed version manager for multiple sdks and tools. It is totally created for general purpose.
Expand Down
6 changes: 3 additions & 3 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/gvcgo/ver

Use Following command when **github.com** happens to be slow.
```bash
curl --proto '=https' --tlsv1.2 -sSf https://gvc.1710717.xyz/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.sh | sh
curl --proto '=https' --tlsv1.2 -sSf https://proxy.vmr.us.kg/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.sh | sh
```

### For Windows
Expand All @@ -25,7 +25,7 @@ powershell -c "irm https://raw.githubusercontent.com/gvcgo/version-manager/main/
Use following command when **github.com** happens to be slow.

```bash
powershell -c "irm https://gvc.1710717.xyz/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.ps1 | iex"
powershell -c "irm https://proxy.vmr.us.kg/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.ps1 | iex"
```


Expand Down Expand Up @@ -55,7 +55,7 @@ $HOME/.vmr/vmr.sh 或 $HOME/.vmr/vmr.fish

Of course. When you are installing VMR for the first time, a hint will prompt asking for customizing your **SDK Installation Dir**, you can just enter the path you want. If you've just input a wrong path, you can manually modify it in **$HOME/.vmr/config.toml**.

![installation](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install_dir.png)
![installation](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install_dir.png)

### How to use TUI?

Expand Down
14 changes: 7 additions & 7 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Use "vmr [command] --help" for more information about a command.
### Set reverse proxy.

```bash
vmr sr "https://gvc.1710717.xyz/proxy/"
vmr sr "https://proxy.vmr.us.kg/proxy/"
```

### Set local proxy.
Expand All @@ -50,33 +50,33 @@ vmr sp "http://localhost:xxx or socks5://localhost:xxx"
```bash
vmr
```
![sdk_list.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_list.png)
![sdk_list.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_list.png)

- 1: Enter keyword to search for an SDK name.
- 2: Key map for next step.
- 3: SDK name list.

### Search SDK name by keyword.
![sdk_search.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_search.png)
![sdk_search.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_search.png)

Same as above.

### Show SDK version list.
![sdk_version.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_list.png)
![sdk_version.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_list.png)

Same as above.

### Search version by keyword.
![version_search.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_search.png)
![version_search.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_search.png)

Same as above.

### Show installed list.
![local_list.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_list.png)
![local_list.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_list.png)

Same as above.

### Search installed version by keyword.
![local_search.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_search.png)
![local_search.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_search.png)

Same as above.
2 changes: 1 addition & 1 deletion docs/zh-cn/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- _coverpage.md -->

![logo](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_logo_trans.png)
![logo](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_logo_trans.png)

# 0.6.x

Expand Down
4 changes: 2 additions & 2 deletions docs/zh-cn/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ $HOME/.vmr/vmr.sh 或者 $HOME/.vmr/vmr.fish
VMR的很多资源,包括版本信息仓库和VMR安装包,都来自github,而国内github访问受限,导致下载速度慢。解决方法如下:

- 使用**vmr sp "http://localhost:xxx or socks5://localhost:xxx"** 设置你自己的代理。
- 使用**vmr sr "https://gvc.1710717.xyz/proxy/"** 设置VMR提供的反向代理,加速github相关的下载。
- 使用**vmr sr "https://proxy.vmr.us.kg/proxy/"** 设置VMR提供的反向代理,加速github相关的下载。
- 对于依赖于conda的SDK,为了加速安装,可以配置国内的conda源,例如[清华源](https://mirror.tuna.tsinghua.edu.cn/help/anaconda/?eqid=b45767b90013072c00000005649051db)

如果添加了代理,获取**SDK列表**时仍然比较慢,你也可以在vmr的配置文件中设置**VersionHostUrl****https://gitee.com/moqsien/vsources/raw/main**。

### 5. 什么是反向代理?

**https://gvc.1710717.xyz/proxy/** 是一个部署在CloudFlare上的反向转发代理,主要用于加速github的国内访问。但是限制了只能访问VMR相关的内容。完全免费。
**https://proxy.vmr.us.kg/proxy/** 是一个部署在CloudFlare上的反向转发代理,主要用于加速github的国内访问。但是限制了只能访问VMR相关的内容。完全免费。

你也可以参考[这个项目](https://github.com/gaboolic/cloudflare-reverse-proxy)来部署自己的反向代理,然后给到VMR使用,这样可以大大降低公用反向代理的压力。

Expand Down
4 changes: 2 additions & 2 deletions docs/zh-cn/flow.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# VMR数据流

<!-- https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install.png -->
![vmr_flow.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_flow.png)
<!-- https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install.png -->
![vmr_flow.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_flow.png)

- [vcollector](https://github.com/gvcgo/vcollector) 收集版本信息并上传到 **resources** 仓库。
- [vsources](https://github.com/gvcgo/vsources) 存储版本信息。
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/gallery.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- 演示

![linux.gif](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_preview.gif)
![linux.gif](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_preview.gif)
2 changes: 1 addition & 1 deletion docs/zh-cn/introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vmr简介

<div align=center><img src="https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_wordcloud.png" width="70%"></div>
<div align=center><img src="https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_wordcloud.png" width="70%"></div>


**VMR** 是一款简单,跨平台,且经过良好设计的版本管理器,用于管理多种SDK以及其他工具。它完全是为了通用目的而创建的。
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-cn/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/gvcgo/ver
如果你访问github.com比较慢,可以使用以下命令。

```bash
curl --proto '=https' --tlsv1.2 -sSf https://gvc.1710717.xyz/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.sh | sh
curl --proto '=https' --tlsv1.2 -sSf https://proxy.vmr.us.kg/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.sh | sh
```

### Windows下的安装
Expand All @@ -25,7 +25,7 @@ powershell -c "irm https://raw.githubusercontent.com/gvcgo/version-manager/main/
如果你访问github.com比较慢,可以使用以下命令。

```bash
powershell -c "irm https://gvc.1710717.xyz/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.ps1 | iex"
powershell -c "irm https://proxy.vmr.us.kg/proxy/https://raw.githubusercontent.com/gvcgo/version-manager/main/scripts/install.preview.ps1 | iex"
```

!> 使用go源码编译得到的Windows可执行文件,经常被windows的defender**误报**为病毒,详见[go语言官方的解释](https://go.dev/doc/faq#virus)。 为了解决这个问题,**VMR**使用**osslsigncode**对windows可执行文件进行了签名,但无法保证一定没有误报。如果仍然出现误报,请手动添加和**VMR**有关的文件夹到信任列表,或者尝试下载**VMR**[签名证书](https://github.com/gvcgo/version-manager/blob/main/scripts/vmr.pfx)进行安装。
Expand Down Expand Up @@ -55,7 +55,7 @@ $HOME/.vmr/vmr.sh 或 $HOME/.vmr/vmr.fish
可以。在首次安装**VMR**的时候,会提示你设置**SDK Installation Dir**,这时候在输入框中输入你想要定制的SDK安装路径即可。
如果你不小心输入错误了,你也可以在 **$HOME/.vmr/config.toml** 配置文件中手动修改。

![installation](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install_dir.png)
![installation](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_install_dir.png)

### 如何打开TUI?

Expand Down
14 changes: 7 additions & 7 deletions docs/zh-cn/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Use "vmr [command] --help" for more information about a command.
### 设置反向代理

```bash
vmr sr "https://gvc.1710717.xyz/proxy/"
vmr sr "https://proxy.vmr.us.kg/proxy/"
```

### 设置本地代理
Expand All @@ -51,34 +51,34 @@ vmr sp "http://localhost:xxx or socks5://localhost:xxx"
```bash
vmr
```
![sdk_list.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_list.png)
![sdk_list.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_list.png)

- 区域1: 输入关键字进行搜索。
- 区域2: 关于下一步的快捷键提示。
- 区域3: 显示SDK名称列表。

### 使用关键字搜索SDK
**注意**:只支持从头开始匹配。
![sdk_search.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_search.png)
![sdk_search.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_sdk_search.png)

同上。

### 展示版本列表
![sdk_version.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_list.png)
![sdk_version.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_list.png)

同上。

### 通过关键字搜索版本号
![version_search.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_search.png)
![version_search.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_version_search.png)

同上。

### 展示已安装的版本
![local_list.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_list.png)
![local_list.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_list.png)

同上。

### 搜索已安装的版本
![local_search.png](https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_search.png)
![local_search.png](https://proxy.vmr.us.kg/proxy/https://cdn.jsdelivr.net/gh/moqsien/img_repo@main/vmr_local_search.png)

同上。

0 comments on commit 5169229

Please sign in to comment.