mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-08-05 03:24:57 +08:00
update
This commit is contained in:
@@ -3,7 +3,7 @@ title: GitHub Acceleration
|
|||||||
description: Accelerate GitHub Release, Raw, Clone, API, and Hugging Face downloads with HubProxy.
|
description: Accelerate GitHub Release, Raw, Clone, API, and Hugging Face downloads with HubProxy.
|
||||||
---
|
---
|
||||||
|
|
||||||
HubProxy forwards unmatched routes to its GitHub proxy handler, which relays the **full original URL** to GitHub, Hugging Face, and other upstreams.
|
Requests that do not match `/v2`, `/token`, `/api`, or other registered routes are handled by the GitHub proxy. Prefix the **full original URL** with your HubProxy host; if the URL matches a supported pattern, the handler reconstructs it and proxies to GitHub, Hugging Face, or other upstreams — otherwise it returns "invalid input".
|
||||||
|
|
||||||
## How to Accelerate
|
## How to Accelerate
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ curl -L -O "https://example.com/github.com/owner/repo/releases/download/v1.0.0/a
|
|||||||
```
|
```
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
**Not supported:** path-prefix rewrites like `https://example.com/github/owner/repo/...` or `/raw/owner/...` — these return "invalid input".
|
**Not supported:** path-prefix rewrites like `https://example.com/gh/owner/repo/...` or `/raw/owner/...` — these return "invalid input".
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Supported URL Types
|
## Supported URL Types
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: GitHub 加速
|
|||||||
description: 使用 HubProxy 加速 GitHub Release、Raw、Clone、API 与 Hugging Face 下载。
|
description: 使用 HubProxy 加速 GitHub Release、Raw、Clone、API 与 Hugging Face 下载。
|
||||||
---
|
---
|
||||||
|
|
||||||
HubProxy 将未匹配其他路由的请求交给 GitHub 代理处理器,把**完整原始 URL** 转发到 GitHub、Hugging Face 等上游。
|
未匹配 `/v2`、`/token`、`/api` 等路由的请求,由 GitHub 代理处理器接管。使用时在**完整原始 URL** 前加上 HubProxy 域名;匹配支持的 URL 类型后,处理器还原地址并代理到 GitHub、Hugging Face 等上游,不匹配则返回「无效输入」。
|
||||||
|
|
||||||
## 加速方式
|
## 加速方式
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ curl -L -O "https://example.com/github.com/owner/repo/releases/download/v1.0.0/a
|
|||||||
```
|
```
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
**不支持**将域名替换为路径前缀的写法,例如 `https://example.com/github/owner/repo/...` 或 `/raw/owner/...` 会返回「无效输入」。
|
**不支持**将域名替换为路径前缀的写法,例如 `https://example.com/gh/owner/repo/...` 或 `/raw/owner/...` 会返回「无效输入」。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## 支持的 URL 类型
|
## 支持的 URL 类型
|
||||||
|
|||||||
Reference in New Issue
Block a user