docs(flathub): clarify Flatpak mirror setup
This commit is contained in:
1 parent
ff3e61ae22
commit
fdeffd6530
3 files changed
+852
-576
No files matched your search
+212
-165
@@ -61,7 +61,9 @@
|
||||
|
||||
技術深度解析文章已發布:**[《深入剖析 Xget:一個高效能、多協定、高安全性的開發者資源加速引擎》](https://blog.xi-xu.me/2025/10/07/deep-dive-into-xget-technology.html)**。
|
||||
|
||||
Xget 已受邀入駐 [GitCode 平台](https://gitcode.com/xixu-me/xget),並被認證為 G-Star 畢業專案;同時也獲得多位技術博主自發推薦,包括[阮一峰](https://www.ruanyifeng.com/blog/2025/12/weekly-issue-379.html#:~:text=Xget)、[GitHubDaily](https://x.com/i/status/1956204203937829256)、[魚 C](https://www.bilibili.com/video/BV1EeeBzVEop/)、[玄離 199](https://www.bilibili.com/video/BV197hqzsE8Y/?t=8) 等。在此感謝 GitCode 的肯定,也感謝每一位分享、推薦與實際使用 Xget 的朋友。
|
||||
Xget 已受邀入駐
|
||||
[GitCode 平台](https://gitcode.com/xixu-me/xget),並被認證為 G-Star 畢業專案;同時也獲得多位技術博主自發推薦,包括[阮一峰](https://www.ruanyifeng.com/blog/2025/12/weekly-issue-379.html#:~:text=Xget)、[GitHubDaily](https://x.com/i/status/1956204203937829256)、[魚 C](https://www.bilibili.com/video/BV1EeeBzVEop/)、[玄離 199](https://www.bilibili.com/video/BV197hqzsE8Y/?t=8)
|
||||
等。在此感謝 GitCode 的肯定,也感謝每一位分享、推薦與實際使用 Xget 的朋友。
|
||||
|
||||
## 🎯 快速開始
|
||||
|
||||
@@ -69,14 +71,16 @@ Xget 已受邀入駐 [GitCode 平台](https://gitcode.com/xixu-me/xget),並被
|
||||
|
||||
**URL 轉換器:**[**`xuc.xi-xu.me`**](https://xuc.xi-xu.me) - 一鍵轉換任意支援平台的 URL 為 Xget 的加速格式
|
||||
|
||||
**Agent Skills:**[**`skills/xget/`**](skills/xget/) - 可作為獨立的 `/xget` 目錄直接安裝到 skills 目錄中
|
||||
**Agent Skills:**[**`skills/xget/`**](skills/xget/) - 可作為獨立的 `/xget`
|
||||
目錄直接安裝到 skills 目錄中
|
||||
|
||||
## 🌟 核心優勢 - 為什麼選擇 Xget?
|
||||
|
||||
### ⚡ 極速效能 - 突破傳統加速器瓶頸
|
||||
|
||||
- **⚡ 毫秒級回應**:Cloudflare 全球 330+ 邊緣節點,平均回應時間 < 50ms
|
||||
- **🌐 HTTP/3 極速協定**:啟用最新 HTTP/3 協定,連線延遲降低 40%,傳輸速度提升 30%
|
||||
- **🌐
|
||||
HTTP/3 極速協定**:啟用最新 HTTP/3 協定,連線延遲降低 40%,傳輸速度提升 30%
|
||||
- **📦 智慧多重壓縮**:gzip、deflate、brotli 三重壓縮演算法,傳輸效率提升 60%
|
||||
- **🔗 零延遲預連線**:連線預熱和保持活躍,消除握手開銷,實現秒級回應
|
||||
- **⚡ 平行分片下載**:完整支援 HTTP Range 請求,多執行緒下載速度倍增
|
||||
@@ -135,7 +139,8 @@ Xget 已受邀入駐 [GitCode 平台](https://gitcode.com/xixu-me/xget),並被
|
||||
|
||||
### 📱 生態系統整合
|
||||
|
||||
- **專用瀏覽器擴充功能**:[Xget Now](https://github.com/xixu-me/Xget-Now) 提供無縫體驗
|
||||
- **專用瀏覽器擴充功能**:[Xget Now](https://github.com/xixu-me/Xget-Now)
|
||||
提供無縫體驗
|
||||
- 自動 URL 轉址,無需手動修改 URL
|
||||
- 支援自訂 Xget 實例網域
|
||||
- 多平台偏好設定和黑白名單管理
|
||||
@@ -222,48 +227,49 @@ classDiagram
|
||||
|
||||
## 📖 URL 轉換規則
|
||||
|
||||
使用預部署實例 **`xget.xi-xu.me`** 或您自己部署的實例,只需簡單替換網域並新增平台前綴:
|
||||
使用預部署實例 **`xget.xi-xu.me`**
|
||||
或您自己部署的實例,只需簡單替換網域並新增平台前綴:
|
||||
|
||||
### 轉換格式
|
||||
|
||||
| 平台 | 平台前綴 | 原始 URL 格式 | 加速 URL 格式 |
|
||||
|------|----------|--------------|--------------|
|
||||
| GitHub | `gh` | `https://github.com/...` | `https://xget.xi-xu.me/gh/...` |
|
||||
| GitHub Gist | `gist` | `https://gist.github.com/...` | `https://xget.xi-xu.me/gist/...` |
|
||||
| GitLab | `gl` | `https://gitlab.com/...` | `https://xget.xi-xu.me/gl/...` |
|
||||
| Gitea | `gitea` | `https://gitea.com/...` | `https://xget.xi-xu.me/gitea/...` |
|
||||
| Codeberg | `codeberg` | `https://codeberg.org/...` | `https://xget.xi-xu.me/codeberg/...` |
|
||||
| SourceForge | `sf` | `https://sourceforge.net/...` | `https://xget.xi-xu.me/sf/...` |
|
||||
| AOSP | `aosp` | `https://android.googlesource.com/...` | `https://xget.xi-xu.me/aosp/...` |
|
||||
| Hugging Face | `hf` | `https://huggingface.co/...` | `https://xget.xi-xu.me/hf/...` |
|
||||
| Civitai | `civitai` | `https://civitai.com/...` | `https://xget.xi-xu.me/civitai/...` |
|
||||
| npm | `npm` | `https://registry.npmjs.org/...` | `https://xget.xi-xu.me/npm/...` |
|
||||
| PyPI | `pypi` | `https://pypi.org/...` | `https://xget.xi-xu.me/pypi/...` |
|
||||
| conda | `conda` | `https://repo.anaconda.com/...` 和 `https://conda.anaconda.org/...` | `https://xget.xi-xu.me/conda/...` 和 `https://xget.xi-xu.me/conda/community/...` |
|
||||
| Maven | `maven` | `https://repo1.maven.org/...` | `https://xget.xi-xu.me/maven/...` |
|
||||
| Apache | `apache` | `https://downloads.apache.org/...` | `https://xget.xi-xu.me/apache/...` |
|
||||
| Gradle | `gradle` | `https://plugins.gradle.org/...` | `https://xget.xi-xu.me/gradle/...` |
|
||||
| Homebrew | `homebrew` | `https://github.com/Homebrew/...` | `https://xget.xi-xu.me/homebrew/...` |
|
||||
| RubyGems | `rubygems` | `https://rubygems.org/...` | `https://xget.xi-xu.me/rubygems/...` |
|
||||
| CRAN | `cran` | `https://cran.r-project.org/...` | `https://xget.xi-xu.me/cran/...` |
|
||||
| CPAN | `cpan` | `https://www.cpan.org/...` | `https://xget.xi-xu.me/cpan/...` |
|
||||
| CTAN | `ctan` | `https://tug.ctan.org/...` | `https://xget.xi-xu.me/ctan/...` |
|
||||
| Go 模組 | `golang` | `https://proxy.golang.org/...` | `https://xget.xi-xu.me/golang/...` |
|
||||
| NuGet | `nuget` | `https://api.nuget.org/...` | `https://xget.xi-xu.me/nuget/...` |
|
||||
| Rust Crates | `crates` | `https://crates.io/...` | `https://xget.xi-xu.me/crates/...` |
|
||||
| Packagist | `packagist` | `https://repo.packagist.org/...` | `https://xget.xi-xu.me/packagist/...` |
|
||||
| Flathub | `flathub` | `https://dl.flathub.org/...` | `https://xget.xi-xu.me/flathub/...` |
|
||||
| Debian | `debian` | `https://deb.debian.org/...` | `https://xget.xi-xu.me/debian/...` |
|
||||
| Ubuntu | `ubuntu` | `https://archive.ubuntu.com/...` | `https://xget.xi-xu.me/ubuntu/...` |
|
||||
| Fedora | `fedora` | `https://dl.fedoraproject.org/...` | `https://xget.xi-xu.me/fedora/...` |
|
||||
| Rocky Linux | `rocky` | `https://download.rockylinux.org/...` | `https://xget.xi-xu.me/rocky/...` |
|
||||
| openSUSE | `opensuse` | `https://download.opensuse.org/...` | `https://xget.xi-xu.me/opensuse/...` |
|
||||
| Arch Linux | `arch` | `https://geo.mirror.pkgbuild.com/...` | `https://xget.xi-xu.me/arch/...` |
|
||||
| arXiv | `arxiv` | `https://arxiv.org/...` | `https://xget.xi-xu.me/arxiv/...` |
|
||||
| F-Droid | `fdroid` | `https://f-droid.org/...` | `https://xget.xi-xu.me/fdroid/...` |
|
||||
| Jenkins 外掛程式 | `jenkins` | `https://updates.jenkins.io/...` | `https://xget.xi-xu.me/jenkins/...` |
|
||||
| 容器註冊表 | `cr` | 見[容器註冊表](#容器註冊表) | 見[容器註冊表](#容器註冊表) |
|
||||
| AI 推理供應商 | `ip` | 見 [AI 推理供應商](#ai-推理供應商) | 見 [AI 推理供應商](#ai-推理供應商) |
|
||||
| 平台 | 平台前綴 | 原始 URL 格式 | 加速 URL 格式 |
|
||||
| ---------------- | ----------- | ------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| GitHub | `gh` | `https://github.com/...` | `https://xget.xi-xu.me/gh/...` |
|
||||
| GitHub Gist | `gist` | `https://gist.github.com/...` | `https://xget.xi-xu.me/gist/...` |
|
||||
| GitLab | `gl` | `https://gitlab.com/...` | `https://xget.xi-xu.me/gl/...` |
|
||||
| Gitea | `gitea` | `https://gitea.com/...` | `https://xget.xi-xu.me/gitea/...` |
|
||||
| Codeberg | `codeberg` | `https://codeberg.org/...` | `https://xget.xi-xu.me/codeberg/...` |
|
||||
| SourceForge | `sf` | `https://sourceforge.net/...` | `https://xget.xi-xu.me/sf/...` |
|
||||
| AOSP | `aosp` | `https://android.googlesource.com/...` | `https://xget.xi-xu.me/aosp/...` |
|
||||
| Hugging Face | `hf` | `https://huggingface.co/...` | `https://xget.xi-xu.me/hf/...` |
|
||||
| Civitai | `civitai` | `https://civitai.com/...` | `https://xget.xi-xu.me/civitai/...` |
|
||||
| npm | `npm` | `https://registry.npmjs.org/...` | `https://xget.xi-xu.me/npm/...` |
|
||||
| PyPI | `pypi` | `https://pypi.org/...` | `https://xget.xi-xu.me/pypi/...` |
|
||||
| conda | `conda` | `https://repo.anaconda.com/...` 和 `https://conda.anaconda.org/...` | `https://xget.xi-xu.me/conda/...` 和 `https://xget.xi-xu.me/conda/community/...` |
|
||||
| Maven | `maven` | `https://repo1.maven.org/...` | `https://xget.xi-xu.me/maven/...` |
|
||||
| Apache | `apache` | `https://downloads.apache.org/...` | `https://xget.xi-xu.me/apache/...` |
|
||||
| Gradle | `gradle` | `https://plugins.gradle.org/...` | `https://xget.xi-xu.me/gradle/...` |
|
||||
| Homebrew | `homebrew` | `https://github.com/Homebrew/...` | `https://xget.xi-xu.me/homebrew/...` |
|
||||
| RubyGems | `rubygems` | `https://rubygems.org/...` | `https://xget.xi-xu.me/rubygems/...` |
|
||||
| CRAN | `cran` | `https://cran.r-project.org/...` | `https://xget.xi-xu.me/cran/...` |
|
||||
| CPAN | `cpan` | `https://www.cpan.org/...` | `https://xget.xi-xu.me/cpan/...` |
|
||||
| CTAN | `ctan` | `https://tug.ctan.org/...` | `https://xget.xi-xu.me/ctan/...` |
|
||||
| Go 模組 | `golang` | `https://proxy.golang.org/...` | `https://xget.xi-xu.me/golang/...` |
|
||||
| NuGet | `nuget` | `https://api.nuget.org/...` | `https://xget.xi-xu.me/nuget/...` |
|
||||
| Rust Crates | `crates` | `https://crates.io/...` | `https://xget.xi-xu.me/crates/...` |
|
||||
| Packagist | `packagist` | `https://repo.packagist.org/...` | `https://xget.xi-xu.me/packagist/...` |
|
||||
| Flathub | `flathub` | `https://dl.flathub.org/...` | `https://xget.xi-xu.me/flathub/...` |
|
||||
| Debian | `debian` | `https://deb.debian.org/...` | `https://xget.xi-xu.me/debian/...` |
|
||||
| Ubuntu | `ubuntu` | `https://archive.ubuntu.com/...` | `https://xget.xi-xu.me/ubuntu/...` |
|
||||
| Fedora | `fedora` | `https://dl.fedoraproject.org/...` | `https://xget.xi-xu.me/fedora/...` |
|
||||
| Rocky Linux | `rocky` | `https://download.rockylinux.org/...` | `https://xget.xi-xu.me/rocky/...` |
|
||||
| openSUSE | `opensuse` | `https://download.opensuse.org/...` | `https://xget.xi-xu.me/opensuse/...` |
|
||||
| Arch Linux | `arch` | `https://geo.mirror.pkgbuild.com/...` | `https://xget.xi-xu.me/arch/...` |
|
||||
| arXiv | `arxiv` | `https://arxiv.org/...` | `https://xget.xi-xu.me/arxiv/...` |
|
||||
| F-Droid | `fdroid` | `https://f-droid.org/...` | `https://xget.xi-xu.me/fdroid/...` |
|
||||
| Jenkins 外掛程式 | `jenkins` | `https://updates.jenkins.io/...` | `https://xget.xi-xu.me/jenkins/...` |
|
||||
| 容器註冊表 | `cr` | 見[容器註冊表](#容器註冊表) | 見[容器註冊表](#容器註冊表) |
|
||||
| AI 推理供應商 | `ip` | 見 [AI 推理供應商](#ai-推理供應商) | 見 [AI 推理供應商](#ai-推理供應商) |
|
||||
|
||||
### 各平台轉換範例
|
||||
|
||||
@@ -747,25 +753,25 @@ https://xget.xi-xu.me/jenkins/download/plugins/maven-plugin/3.27/maven-plugin.hp
|
||||
|
||||
Xget 支援多個容器註冊表,使用 `cr/[容器註冊表前綴]` 格式:
|
||||
|
||||
| 容器註冊表 | 容器註冊表前綴 | 原始 URL 格式 | 加速 URL 格式 |
|
||||
|----------|------|--------------|--------------|
|
||||
| Docker Hub | `docker` | `https://registry-1.docker.io/...` | `https://xget.xi-xu.me/cr/docker/...` |
|
||||
| Quay.io | `quay` | `https://quay.io/...` | `https://xget.xi-xu.me/cr/quay/...` |
|
||||
| Google 容器註冊表 | `gcr` | `https://gcr.io/...` | `https://xget.xi-xu.me/cr/gcr/...` |
|
||||
| Microsoft 容器註冊表 | `mcr` | `https://mcr.microsoft.com/...` | `https://xget.xi-xu.me/cr/mcr/...` |
|
||||
| Amazon Public ECR | `ecr` | `https://public.ecr.aws/...` | `https://xget.xi-xu.me/cr/ecr/...` |
|
||||
| GitHub 容器註冊表 | `ghcr` | `https://ghcr.io/...` | `https://xget.xi-xu.me/cr/ghcr/...` |
|
||||
| GitLab 容器註冊表 | `gitlab` | `https://registry.gitlab.com/...` | `https://xget.xi-xu.me/cr/gitlab/...` |
|
||||
| Red Hat 註冊表 | `redhat` | `https://registry.redhat.io/...` | `https://xget.xi-xu.me/cr/redhat/...` |
|
||||
| Oracle 容器註冊表 | `oracle` | `https://container-registry.oracle.com/...` | `https://xget.xi-xu.me/cr/oracle/...` |
|
||||
| Cloudsmith | `cloudsmith` | `https://docker.cloudsmith.io/...` | `https://xget.xi-xu.me/cr/cloudsmith/...` |
|
||||
| DigitalOcean 註冊表 | `digitalocean` | `https://registry.digitalocean.com/...` | `https://xget.xi-xu.me/cr/digitalocean/...` |
|
||||
| VMware 註冊表 | `vmware` | `https://projects.registry.vmware.com/...` | `https://xget.xi-xu.me/cr/vmware/...` |
|
||||
| Kubernetes 註冊表 | `k8s` | `https://registry.k8s.io/...` | `https://xget.xi-xu.me/cr/k8s/...` |
|
||||
| Heroku 註冊表 | `heroku` | `https://registry.heroku.com/...` | `https://xget.xi-xu.me/cr/heroku/...` |
|
||||
| SUSE 註冊表 | `suse` | `https://registry.suse.com/...` | `https://xget.xi-xu.me/cr/suse/...` |
|
||||
| openSUSE 註冊表 | `opensuse` | `https://registry.opensuse.org/...` | `https://xget.xi-xu.me/cr/opensuse/...` |
|
||||
| Gitpod 註冊表 | `gitpod` | `https://registry.gitpod.io/...` | `https://xget.xi-xu.me/cr/gitpod/...` |
|
||||
| 容器註冊表 | 容器註冊表前綴 | 原始 URL 格式 | 加速 URL 格式 |
|
||||
| -------------------- | -------------- | ------------------------------------------- | ------------------------------------------- |
|
||||
| Docker Hub | `docker` | `https://registry-1.docker.io/...` | `https://xget.xi-xu.me/cr/docker/...` |
|
||||
| Quay.io | `quay` | `https://quay.io/...` | `https://xget.xi-xu.me/cr/quay/...` |
|
||||
| Google 容器註冊表 | `gcr` | `https://gcr.io/...` | `https://xget.xi-xu.me/cr/gcr/...` |
|
||||
| Microsoft 容器註冊表 | `mcr` | `https://mcr.microsoft.com/...` | `https://xget.xi-xu.me/cr/mcr/...` |
|
||||
| Amazon Public ECR | `ecr` | `https://public.ecr.aws/...` | `https://xget.xi-xu.me/cr/ecr/...` |
|
||||
| GitHub 容器註冊表 | `ghcr` | `https://ghcr.io/...` | `https://xget.xi-xu.me/cr/ghcr/...` |
|
||||
| GitLab 容器註冊表 | `gitlab` | `https://registry.gitlab.com/...` | `https://xget.xi-xu.me/cr/gitlab/...` |
|
||||
| Red Hat 註冊表 | `redhat` | `https://registry.redhat.io/...` | `https://xget.xi-xu.me/cr/redhat/...` |
|
||||
| Oracle 容器註冊表 | `oracle` | `https://container-registry.oracle.com/...` | `https://xget.xi-xu.me/cr/oracle/...` |
|
||||
| Cloudsmith | `cloudsmith` | `https://docker.cloudsmith.io/...` | `https://xget.xi-xu.me/cr/cloudsmith/...` |
|
||||
| DigitalOcean 註冊表 | `digitalocean` | `https://registry.digitalocean.com/...` | `https://xget.xi-xu.me/cr/digitalocean/...` |
|
||||
| VMware 註冊表 | `vmware` | `https://projects.registry.vmware.com/...` | `https://xget.xi-xu.me/cr/vmware/...` |
|
||||
| Kubernetes 註冊表 | `k8s` | `https://registry.k8s.io/...` | `https://xget.xi-xu.me/cr/k8s/...` |
|
||||
| Heroku 註冊表 | `heroku` | `https://registry.heroku.com/...` | `https://xget.xi-xu.me/cr/heroku/...` |
|
||||
| SUSE 註冊表 | `suse` | `https://registry.suse.com/...` | `https://xget.xi-xu.me/cr/suse/...` |
|
||||
| openSUSE 註冊表 | `opensuse` | `https://registry.opensuse.org/...` | `https://xget.xi-xu.me/cr/opensuse/...` |
|
||||
| Gitpod 註冊表 | `gitpod` | `https://registry.gitpod.io/...` | `https://xget.xi-xu.me/cr/gitpod/...` |
|
||||
|
||||
```url
|
||||
# Docker Hub 原始 URL(官方鏡像)
|
||||
@@ -799,36 +805,36 @@ https://xget.xi-xu.me/cr/gcr/v2/distroless/base/manifests/latest
|
||||
|
||||
Xget 支援眾多主流 AI 推理供應商的 API 加速,使用 `ip/[AI 推理供應商前綴]` 格式:
|
||||
|
||||
| AI 推理供應商 | AI 推理供應商前綴 | 原始 URL 格式 | 加速 URL 格式 |
|
||||
|-------------|----------|-------------|-------------|
|
||||
| OpenAI | `openai` | `https://api.openai.com/...` | `https://xget.xi-xu.me/ip/openai/...` |
|
||||
| Anthropic | `anthropic` | `https://api.anthropic.com/...` | `https://xget.xi-xu.me/ip/anthropic/...` |
|
||||
| Gemini | `gemini` | `https://generativelanguage.googleapis.com/...` | `https://xget.xi-xu.me/ip/gemini/...` |
|
||||
| Vertex AI | `vertexai` | `https://aiplatform.googleapis.com/...` | `https://xget.xi-xu.me/ip/vertexai/...` |
|
||||
| Cohere | `cohere` | `https://api.cohere.ai/...` | `https://xget.xi-xu.me/ip/cohere/...` |
|
||||
| Mistral AI | `mistralai` | `https://api.mistral.ai/...` | `https://xget.xi-xu.me/ip/mistralai/...` |
|
||||
| xAI | `xai` | `https://api.x.ai/...` | `https://xget.xi-xu.me/ip/xai/...` |
|
||||
| GitHub Models | `githubmodels` | `https://models.github.ai/...` | `https://xget.xi-xu.me/ip/githubmodels/...` |
|
||||
| NVIDIA API | `nvidiaapi` | `https://integrate.api.nvidia.com/...` | `https://xget.xi-xu.me/ip/nvidiaapi/...` |
|
||||
| Perplexity | `perplexity` | `https://api.perplexity.ai/...` | `https://xget.xi-xu.me/ip/perplexity/...` |
|
||||
| Groq | `groq` | `https://api.groq.com/...` | `https://xget.xi-xu.me/ip/groq/...` |
|
||||
| Cerebras | `cerebras` | `https://api.cerebras.ai/...` | `https://xget.xi-xu.me/ip/cerebras/...` |
|
||||
| SambaNova | `sambanova` | `https://api.sambanova.ai/...` | `https://xget.xi-xu.me/ip/sambanova/...` |
|
||||
| Siray | `siray` | `https://api.siray.ai/...` | `https://xget.xi-xu.me/ip/siray/...` |
|
||||
| HF Inference | `huggingface` | `https://router.huggingface.co/...` | `https://xget.xi-xu.me/ip/huggingface/...` |
|
||||
| Together | `together` | `https://api.together.xyz/...` | `https://xget.xi-xu.me/ip/together/...` |
|
||||
| Replicate | `replicate` | `https://api.replicate.com/...` | `https://xget.xi-xu.me/ip/replicate/...` |
|
||||
| Fireworks | `fireworks` | `https://api.fireworks.ai/...` | `https://xget.xi-xu.me/ip/fireworks/...` |
|
||||
| Nebius | `nebius` | `https://api.studio.nebius.ai/...` | `https://xget.xi-xu.me/ip/nebius/...` |
|
||||
| Jina | `jina` | `https://api.jina.ai/...` | `https://xget.xi-xu.me/ip/jina/...` |
|
||||
| Voyage AI | `voyageai` | `https://api.voyageai.com/...` | `https://xget.xi-xu.me/ip/voyageai/...` |
|
||||
| Fal AI | `falai` | `https://fal.run/...` | `https://xget.xi-xu.me/ip/falai/...` |
|
||||
| Novita | `novita` | `https://api.novita.ai/...` | `https://xget.xi-xu.me/ip/novita/...` |
|
||||
| Burncloud | `burncloud` | `https://ai.burncloud.com/...` | `https://xget.xi-xu.me/ip/burncloud/...` |
|
||||
| OpenRouter | `openrouter` | `https://openrouter.ai/...` | `https://xget.xi-xu.me/ip/openrouter/...` |
|
||||
| Poe | `poe` | `https://api.poe.com/...` | `https://xget.xi-xu.me/ip/poe/...` |
|
||||
| Featherless AI | `featherlessai` | `https://api.featherless.ai/...` | `https://xget.xi-xu.me/ip/featherlessai/...` |
|
||||
| Hyperbolic | `hyperbolic` | `https://api.hyperbolic.xyz/...` | `https://xget.xi-xu.me/ip/hyperbolic/...` |
|
||||
| AI 推理供應商 | AI 推理供應商前綴 | 原始 URL 格式 | 加速 URL 格式 |
|
||||
| -------------- | ----------------- | ----------------------------------------------- | -------------------------------------------- |
|
||||
| OpenAI | `openai` | `https://api.openai.com/...` | `https://xget.xi-xu.me/ip/openai/...` |
|
||||
| Anthropic | `anthropic` | `https://api.anthropic.com/...` | `https://xget.xi-xu.me/ip/anthropic/...` |
|
||||
| Gemini | `gemini` | `https://generativelanguage.googleapis.com/...` | `https://xget.xi-xu.me/ip/gemini/...` |
|
||||
| Vertex AI | `vertexai` | `https://aiplatform.googleapis.com/...` | `https://xget.xi-xu.me/ip/vertexai/...` |
|
||||
| Cohere | `cohere` | `https://api.cohere.ai/...` | `https://xget.xi-xu.me/ip/cohere/...` |
|
||||
| Mistral AI | `mistralai` | `https://api.mistral.ai/...` | `https://xget.xi-xu.me/ip/mistralai/...` |
|
||||
| xAI | `xai` | `https://api.x.ai/...` | `https://xget.xi-xu.me/ip/xai/...` |
|
||||
| GitHub Models | `githubmodels` | `https://models.github.ai/...` | `https://xget.xi-xu.me/ip/githubmodels/...` |
|
||||
| NVIDIA API | `nvidiaapi` | `https://integrate.api.nvidia.com/...` | `https://xget.xi-xu.me/ip/nvidiaapi/...` |
|
||||
| Perplexity | `perplexity` | `https://api.perplexity.ai/...` | `https://xget.xi-xu.me/ip/perplexity/...` |
|
||||
| Groq | `groq` | `https://api.groq.com/...` | `https://xget.xi-xu.me/ip/groq/...` |
|
||||
| Cerebras | `cerebras` | `https://api.cerebras.ai/...` | `https://xget.xi-xu.me/ip/cerebras/...` |
|
||||
| SambaNova | `sambanova` | `https://api.sambanova.ai/...` | `https://xget.xi-xu.me/ip/sambanova/...` |
|
||||
| Siray | `siray` | `https://api.siray.ai/...` | `https://xget.xi-xu.me/ip/siray/...` |
|
||||
| HF Inference | `huggingface` | `https://router.huggingface.co/...` | `https://xget.xi-xu.me/ip/huggingface/...` |
|
||||
| Together | `together` | `https://api.together.xyz/...` | `https://xget.xi-xu.me/ip/together/...` |
|
||||
| Replicate | `replicate` | `https://api.replicate.com/...` | `https://xget.xi-xu.me/ip/replicate/...` |
|
||||
| Fireworks | `fireworks` | `https://api.fireworks.ai/...` | `https://xget.xi-xu.me/ip/fireworks/...` |
|
||||
| Nebius | `nebius` | `https://api.studio.nebius.ai/...` | `https://xget.xi-xu.me/ip/nebius/...` |
|
||||
| Jina | `jina` | `https://api.jina.ai/...` | `https://xget.xi-xu.me/ip/jina/...` |
|
||||
| Voyage AI | `voyageai` | `https://api.voyageai.com/...` | `https://xget.xi-xu.me/ip/voyageai/...` |
|
||||
| Fal AI | `falai` | `https://fal.run/...` | `https://xget.xi-xu.me/ip/falai/...` |
|
||||
| Novita | `novita` | `https://api.novita.ai/...` | `https://xget.xi-xu.me/ip/novita/...` |
|
||||
| Burncloud | `burncloud` | `https://ai.burncloud.com/...` | `https://xget.xi-xu.me/ip/burncloud/...` |
|
||||
| OpenRouter | `openrouter` | `https://openrouter.ai/...` | `https://xget.xi-xu.me/ip/openrouter/...` |
|
||||
| Poe | `poe` | `https://api.poe.com/...` | `https://xget.xi-xu.me/ip/poe/...` |
|
||||
| Featherless AI | `featherlessai` | `https://api.featherless.ai/...` | `https://xget.xi-xu.me/ip/featherlessai/...` |
|
||||
| Hyperbolic | `hyperbolic` | `https://api.hyperbolic.xyz/...` | `https://xget.xi-xu.me/ip/hyperbolic/...` |
|
||||
|
||||
```url
|
||||
# OpenAI API 原始 URL
|
||||
@@ -1169,7 +1175,7 @@ dependencies:
|
||||
- scipy>=1.10.0
|
||||
- pip
|
||||
- pip:
|
||||
- requests>=2.28.0
|
||||
- requests>=2.28.0
|
||||
```
|
||||
|
||||
```bash
|
||||
@@ -1689,21 +1695,35 @@ composer config -l
|
||||
#### 配置 Flatpak / Flathub 使用 Xget 鏡像
|
||||
|
||||
```bash
|
||||
# 透過重寫後的 .flatpakrepo 描述檔新增 Flathub 遠端儲存庫
|
||||
# 如果之前從未加入過 Flathub,請先匯入官方描述檔,
|
||||
# 讓 Flatpak 信任 Flathub 的簽章金鑰。
|
||||
flatpak remote-add --if-not-exists flathub \
|
||||
https://xget.xi-xu.me/flathub/repo/flathub.flatpakrepo
|
||||
https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
# 或者直接新增 OSTree 儲存庫位址
|
||||
flatpak remote-add --if-not-exists flathub \
|
||||
https://xget.xi-xu.me/flathub/repo/
|
||||
# 然後將現有的 Flathub 遠端儲存庫改寫到 Xget 鏡像
|
||||
flatpak remote-modify flathub \
|
||||
--url=https://xget.xi-xu.me/flathub/repo/
|
||||
|
||||
# 需要時恢復預設上游位址
|
||||
flatpak remote-modify flathub \
|
||||
--url=https://dl.flathub.org/repo/
|
||||
```
|
||||
|
||||
Xget 鏡像的是 Flathub 的 OSTree 儲存庫端點。依照目前 Flatpak 用戶端的實際行為,直接匯入鏡像
|
||||
`.flatpakrepo`
|
||||
描述檔,或直接新增鏡像儲存庫 URL,仍可能回退到上游 Flathub 位址,或因未匯入簽章金鑰而失敗,因此較可靠的做法是先加入官方 Flathub,再透過
|
||||
`flatpak remote-modify ... --url=...`
|
||||
改寫遠端位址。若你使用系統層級遠端儲存庫,請在相同命令前加上 `sudo`。
|
||||
|
||||
#### 支援的 Flathub 服務
|
||||
|
||||
```url
|
||||
# OSTree 儲存庫中繼資料
|
||||
https://xget.xi-xu.me/flathub/repo/config
|
||||
https://xget.xi-xu.me/flathub/repo/summary
|
||||
https://xget.xi-xu.me/flathub/repo/summary.sig
|
||||
https://xget.xi-xu.me/flathub/repo/summary.idx
|
||||
https://xget.xi-xu.me/flathub/repo/summaries/...
|
||||
|
||||
# Flatpak 遠端儲存庫描述檔
|
||||
https://xget.xi-xu.me/flathub/repo/flathub.flatpakrepo
|
||||
@@ -1714,21 +1734,28 @@ https://xget.xi-xu.me/flathub/repo/appstream/[應用程式 ID].flatpakref
|
||||
# 儲存庫物件與靜態增量
|
||||
https://xget.xi-xu.me/flathub/repo/objects/...
|
||||
https://xget.xi-xu.me/flathub/repo/deltas/...
|
||||
https://xget.xi-xu.me/flathub/repo/delta-indexes/...
|
||||
```
|
||||
|
||||
#### 使用範例
|
||||
|
||||
```bash
|
||||
# 確認儲存下來的遠端儲存庫 URL 已指向 Xget
|
||||
flatpak remotes --show-details
|
||||
|
||||
# 檢視遠端儲存庫內容
|
||||
flatpak remote-ls flathub
|
||||
|
||||
# 從 Xget 加速的 Flathub 鏡像安裝應用程式
|
||||
# 在改寫 Flathub 遠端儲存庫後安裝應用程式
|
||||
flatpak install flathub org.gnome.gedit
|
||||
|
||||
# 直接透過重寫後的 .flatpakref 安裝
|
||||
flatpak install --from \
|
||||
https://xget.xi-xu.me/flathub/repo/appstream/org.gnome.gedit.flatpakref
|
||||
|
||||
# 疑難排解時輸出 libcurl HTTP 偵錯資訊
|
||||
OSTREE_DEBUG_HTTP=1 flatpak remote-ls flathub
|
||||
|
||||
# 更新已安裝的應用程式與執行時
|
||||
flatpak update
|
||||
```
|
||||
@@ -1947,7 +1974,8 @@ task checkFDroidAvailability {
|
||||
|
||||
1. 登入 Jenkins 管理介面
|
||||
2. 進入 **Manage Jenkins** → **Plugins** → **Advanced**
|
||||
3. 在 **Update Site** 部分,將 URL 更改為 `https://xget.xi-xu.me/jenkins/update-center.json`
|
||||
3. 在 **Update Site** 部分,將 URL 更改為
|
||||
`https://xget.xi-xu.me/jenkins/update-center.json`
|
||||
4. 點擊 **Submit** 儲存配置
|
||||
|
||||
##### 方法二:修改設定檔
|
||||
@@ -2159,14 +2187,14 @@ spec:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: xget.xi-xu.me/cr/ghcr/nginxinc/nginx-unprivileged:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- name: redis
|
||||
image: xget.xi-xu.me/cr/ghcr/bitnami/redis:alpine
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
- name: nginx
|
||||
image: xget.xi-xu.me/cr/ghcr/nginxinc/nginx-unprivileged:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- name: redis
|
||||
image: xget.xi-xu.me/cr/ghcr/bitnami/redis:alpine
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
```
|
||||
|
||||
#### Docker Compose 配置
|
||||
@@ -2178,7 +2206,7 @@ services:
|
||||
web:
|
||||
image: xget.xi-xu.me/cr/ghcr/nginxinc/nginx-unprivileged:latest
|
||||
ports:
|
||||
- "80:80"
|
||||
- '80:80'
|
||||
volumes:
|
||||
- ./html:/usr/share/nginx/html
|
||||
|
||||
@@ -2186,14 +2214,14 @@ services:
|
||||
image: xget.xi-xu.me/cr/mcr/mssql/server:2022-latest
|
||||
environment:
|
||||
ACCEPT_EULA: Y
|
||||
SA_PASSWORD: "MyStrongPassword123!"
|
||||
SA_PASSWORD: 'MyStrongPassword123!'
|
||||
volumes:
|
||||
- mssql_data:/var/opt/mssql
|
||||
|
||||
cache:
|
||||
image: xget.xi-xu.me/cr/ghcr/bitnami/redis:alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
- '6379:6379'
|
||||
|
||||
volumes:
|
||||
mssql_data:
|
||||
@@ -2368,61 +2396,61 @@ for name, key, path, model in providers:
|
||||
|
||||
```javascript
|
||||
// OpenAI API 加速
|
||||
import OpenAI from "openai";
|
||||
import OpenAI from 'openai';
|
||||
|
||||
const openaiClient = new OpenAI({
|
||||
apiKey: "your-openai-api-key",
|
||||
baseURL: "https://xget.xi-xu.me/ip/openai/v1", // 使用 Xget
|
||||
apiKey: 'your-openai-api-key',
|
||||
baseURL: 'https://xget.xi-xu.me/ip/openai/v1' // 使用 Xget
|
||||
});
|
||||
|
||||
async function chatWithGPT() {
|
||||
const response = await openaiClient.responses.create({
|
||||
model: "gpt-5.1",
|
||||
input: "Hello, GPT!",
|
||||
model: 'gpt-5.1',
|
||||
input: 'Hello, GPT!'
|
||||
});
|
||||
|
||||
console.log(response.output_text);
|
||||
}
|
||||
|
||||
// Claude API 加速
|
||||
import Anthropic from "@anthropic-ai/sdk";
|
||||
import Anthropic from '@anthropic-ai/sdk';
|
||||
|
||||
const anthropicClient = new Anthropic({
|
||||
apiKey: "your-claude-api-key",
|
||||
baseURL: "https://xget.xi-xu.me/ip/anthropic", // 使用 Xget
|
||||
apiKey: 'your-claude-api-key',
|
||||
baseURL: 'https://xget.xi-xu.me/ip/anthropic' // 使用 Xget
|
||||
});
|
||||
|
||||
async function chatWithClaude() {
|
||||
const message = await anthropicClient.messages.create({
|
||||
model: "claude-sonnet-4-5",
|
||||
model: 'claude-sonnet-4-5',
|
||||
max_tokens: 256,
|
||||
messages: [
|
||||
{
|
||||
role: "user",
|
||||
content: "Hello, Claude!",
|
||||
},
|
||||
],
|
||||
role: 'user',
|
||||
content: 'Hello, Claude!'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
console.log(message.content[0].text);
|
||||
}
|
||||
|
||||
// Gemini API 加速
|
||||
import { GoogleGenAI } from "@google/genai";
|
||||
import { GoogleGenAI } from '@google/genai';
|
||||
|
||||
const geminiClient = new GoogleGenAI({
|
||||
apiKey: "your-gemini-api-key",
|
||||
apiKey: 'your-gemini-api-key'
|
||||
});
|
||||
|
||||
async function chatWithGemini() {
|
||||
const response = await geminiClient.models.generateContent({
|
||||
model: "gemini-3-pro-preview",
|
||||
contents: "Hello, Gemini!",
|
||||
model: 'gemini-3-pro-preview',
|
||||
contents: 'Hello, Gemini!',
|
||||
config: {
|
||||
httpOptions: {
|
||||
baseUrl: "https://xget.xi-xu.me/ip/gemini", // 使用 Xget
|
||||
},
|
||||
},
|
||||
baseUrl: 'https://xget.xi-xu.me/ip/gemini' // 使用 Xget
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
console.log(response.text);
|
||||
@@ -2461,8 +2489,11 @@ client = OpenAI(
|
||||
1. **fork 本儲存庫**:[Fork xixu-me/Xget](https://github.com/xixu-me/Xget/fork)
|
||||
|
||||
2. **獲取 Cloudflare 憑證**:
|
||||
- 存取[帳戶 API 權杖](https://dash.cloudflare.com/?to=/:account/api-tokens)建立並記錄 API 權杖,使用「編輯 Cloudflare Workers」範本
|
||||
- 存取 [Workers 和 Pages](https://dash.cloudflare.com/?to=/:account/workers-and-pages) 記錄 Account ID
|
||||
- 存取[帳戶 API 權杖](https://dash.cloudflare.com/?to=/:account/api-tokens)建立並記錄 API 權杖,使用「編輯 Cloudflare
|
||||
Workers」範本
|
||||
- 存取
|
||||
[Workers 和 Pages](https://dash.cloudflare.com/?to=/:account/workers-and-pages)
|
||||
記錄 Account ID
|
||||
|
||||
3. **配置 GitHub Secrets**:
|
||||
- 進入您的 GitHub 儲存庫 → Settings → Secrets and variables → Actions
|
||||
@@ -2482,8 +2513,11 @@ client = OpenAI(
|
||||
1. **fork 本儲存庫**:[Fork xixu-me/Xget](https://github.com/xixu-me/Xget/fork)
|
||||
|
||||
2. **獲取 Cloudflare 憑證**:
|
||||
- 存取[帳戶 API 權杖](https://dash.cloudflare.com/?to=/:account/api-tokens)建立並記錄 API 權杖,使用「編輯 Cloudflare Workers」範本
|
||||
- 存取 [Workers 和 Pages](https://dash.cloudflare.com/?to=/:account/workers-and-pages) 記錄 Account ID
|
||||
- 存取[帳戶 API 權杖](https://dash.cloudflare.com/?to=/:account/api-tokens)建立並記錄 API 權杖,使用「編輯 Cloudflare
|
||||
Workers」範本
|
||||
- 存取
|
||||
[Workers 和 Pages](https://dash.cloudflare.com/?to=/:account/workers-and-pages)
|
||||
記錄 Account ID
|
||||
|
||||
3. **配置 GitHub Secrets**:
|
||||
- 進入您的 GitHub 儲存庫 → Settings → Secrets and variables → Actions
|
||||
@@ -2499,14 +2533,16 @@ client = OpenAI(
|
||||
|
||||
5. **綁定自訂網域**(可選):在 Cloudflare Pages 控制台中綁定您的自訂網域
|
||||
|
||||
**注意**:`pages` 分支是從 `main` 分支自動生成的。請勿手動編輯 `pages` 分支,因為它會被同步工作流程覆蓋。
|
||||
**注意**:`pages` 分支是從 `main` 分支自動生成的。請勿手動編輯 `pages`
|
||||
分支,因為它會被同步工作流程覆蓋。
|
||||
|
||||
### 部署到 EdgeOne Pages
|
||||
|
||||
1. **fork 本儲存庫**:[Fork xixu-me/Xget](https://github.com/xixu-me/Xget/fork)
|
||||
|
||||
2. **獲取 EdgeOne Pages API Token**:
|
||||
- 存取[中國站 EdgeOne 控制台](https://console.cloud.tencent.com/edgeone/pages?tab=api)或[國際站 EdgeOne 控制台](https://console.tencentcloud.com/edgeone/pages?tab=api)建立並記錄 API Token
|
||||
- 存取[中國站 EdgeOne 控制台](https://console.cloud.tencent.com/edgeone/pages?tab=api)或[國際站 EdgeOne 控制台](https://console.tencentcloud.com/edgeone/pages?tab=api)建立並記錄 API
|
||||
Token
|
||||
|
||||
3. **配置 GitHub Secrets**:
|
||||
- 進入您的 GitHub 儲存庫 → Settings → Secrets and variables → Actions
|
||||
@@ -2521,14 +2557,16 @@ client = OpenAI(
|
||||
|
||||
5. **綁定自訂網域**(可選):在 EdgeOne Pages 控制台中綁定您的自訂網域
|
||||
|
||||
**注意**:`pages` 分支是從 `main` 分支自動生成的。請勿手動編輯 `pages` 分支,因為它會被同步工作流程覆蓋。
|
||||
**注意**:`pages` 分支是從 `main` 分支自動生成的。請勿手動編輯 `pages`
|
||||
分支,因為它會被同步工作流程覆蓋。
|
||||
|
||||
### 部署到 Vercel
|
||||
|
||||
1. **fork 本儲存庫**:[Fork xixu-me/Xget](https://github.com/xixu-me/Xget/fork)
|
||||
|
||||
2. **獲取 Vercel 憑證**:
|
||||
- 存取 [Vercel Account Settings](https://vercel.com/account/settings/tokens) 建立並記錄 Access Token
|
||||
- 存取 [Vercel Account Settings](https://vercel.com/account/settings/tokens)
|
||||
建立並記錄 Access Token
|
||||
- 存取 Team Settings 記錄 Team ID
|
||||
- 新建專案後存取專案的 Settings 記錄 Project ID
|
||||
|
||||
@@ -2540,21 +2578,24 @@ client = OpenAI(
|
||||
- `VERCEL_PROJECT_ID`:您的 Project ID
|
||||
|
||||
4. **觸發部署**:
|
||||
- 儲存庫會自動將 Workers 程式碼轉換為 Functions 相容格式並同步到 `functions` 分支
|
||||
- 儲存庫會自動將 Workers 程式碼轉換為 Functions 相容格式並同步到 `functions`
|
||||
分支
|
||||
- 推送程式碼到 `main` 分支會自動觸發同步和部署工作流程
|
||||
- 僅修改文件檔案(`.md`)、`LICENSE`、`.gitignore` 等不會觸發部署
|
||||
- 也可以在 GitHub Actions 頁面手動觸發部署
|
||||
|
||||
5. **綁定自訂網域**(可選):在 Vercel 控制台中綁定您的自訂網域
|
||||
|
||||
**注意**:`functions` 分支是從 `main` 分支自動生成的。請勿手動編輯 `functions` 分支,因為它會被同步工作流程覆蓋。
|
||||
**注意**:`functions` 分支是從 `main` 分支自動生成的。請勿手動編輯 `functions`
|
||||
分支,因為它會被同步工作流程覆蓋。
|
||||
|
||||
### 部署到 Netlify
|
||||
|
||||
1. **fork 本儲存庫**:[Fork xixu-me/Xget](https://github.com/xixu-me/Xget/fork)
|
||||
|
||||
2. **獲取 Netlify 憑證**:
|
||||
- 存取 [Netlify User Settings](https://app.netlify.com/user/applications) 建立並記錄 personal access token
|
||||
- 存取 [Netlify User Settings](https://app.netlify.com/user/applications)
|
||||
建立並記錄 personal access token
|
||||
- 新建專案後存取 Project configuration 記錄 Project ID
|
||||
|
||||
3. **配置 GitHub Secrets**:
|
||||
@@ -2564,14 +2605,16 @@ client = OpenAI(
|
||||
- `NETLIFY_SITE_ID`:您的 Project ID
|
||||
|
||||
4. **觸發部署**:
|
||||
- 儲存庫會自動將 Workers 程式碼轉換為 Functions 相容格式並同步到 `functions` 分支
|
||||
- 儲存庫會自動將 Workers 程式碼轉換為 Functions 相容格式並同步到 `functions`
|
||||
分支
|
||||
- 推送程式碼到 `main` 分支會自動觸發同步和部署工作流程
|
||||
- 僅修改文件檔案(`.md`)、`LICENSE`、`.gitignore` 等不會觸發部署
|
||||
- 也可以在 GitHub Actions 頁面手動觸發部署
|
||||
|
||||
5. **綁定自訂網域**(可選):在 Netlify 控制台中綁定您的自訂網域
|
||||
|
||||
**注意**:`functions` 分支是從 `main` 分支自動生成的。請勿手動編輯 `functions` 分支,因為它會被同步工作流程覆蓋。
|
||||
**注意**:`functions` 分支是從 `main` 分支自動生成的。請勿手動編輯 `functions`
|
||||
分支,因為它會被同步工作流程覆蓋。
|
||||
|
||||
### 部署到 Deno Deploy
|
||||
|
||||
@@ -2582,12 +2625,14 @@ client = OpenAI(
|
||||
- 將預設分支從 `main` 切換到 `functions`
|
||||
|
||||
3. **部署到 Deno Deploy**:
|
||||
- 參考 [Deno Deploy 官方文件](https://docs.deno.com/deploy/getting_started/)執行部署
|
||||
- 參考
|
||||
[Deno Deploy 官方文件](https://docs.deno.com/deploy/getting_started/)執行部署
|
||||
- 在 Deno Deploy 控制台建立新專案並連接您的 GitHub 儲存庫
|
||||
|
||||
4. **綁定自訂網域**(可選):在 Deno Deploy 控制台中綁定您的自訂網域
|
||||
|
||||
**注意**:`functions` 分支是從 `main` 分支自動生成的。請勿手動編輯 `functions` 分支,因為它會被同步工作流程覆蓋。
|
||||
**注意**:`functions` 分支是從 `main` 分支自動生成的。請勿手動編輯 `functions`
|
||||
分支,因為它會被同步工作流程覆蓋。
|
||||
|
||||
### 自託管部署
|
||||
|
||||
@@ -2673,7 +2718,7 @@ services:
|
||||
image: ghcr.io/xixu-me/xget:latest
|
||||
container_name: xget
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- '8080:8080'
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
@@ -2691,7 +2736,8 @@ podman compose up -d
|
||||
|
||||
部署完成後,Xget 將在 8080 連接埠執行。
|
||||
|
||||
如果您希望在 DigitalOcean 上部署和執行 Xget,可以參考文件[《Deploying and Optimizing Xget on DigitalOcean》](docs/deploy-on-digitalocean.md)。透過下方推薦連結註冊帳戶,可獲得 200 美元代金券積分,可用於建立 Droplet、Kubernetes、App Platform 等資源:
|
||||
如果您希望在 DigitalOcean 上部署和執行 Xget,可以參考文件[《Deploying and Optimizing Xget on DigitalOcean》](docs/deploy-on-digitalocean.md)。透過下方推薦連結註冊帳戶,可獲得 200 美元代金券積分,可用於建立 Droplet、Kubernetes、App
|
||||
Platform 等資源:
|
||||
|
||||
<p>
|
||||
<a href="https://m.do.co/c/7efe110ca23f">
|
||||
@@ -2709,15 +2755,15 @@ podman compose up -d
|
||||
|
||||
```javascript
|
||||
export const CONFIG = {
|
||||
TIMEOUT_SECONDS: 30, // 請求逾時時間(秒)
|
||||
MAX_RETRIES: 3, // 最大重試次數
|
||||
RETRY_DELAY_MS: 1000, // 重試延遲時間(毫秒)
|
||||
CACHE_DURATION: 1800, // 快取持續時間(1800秒 = 30分鐘)
|
||||
TIMEOUT_SECONDS: 30, // 請求逾時時間(秒)
|
||||
MAX_RETRIES: 3, // 最大重試次數
|
||||
RETRY_DELAY_MS: 1000, // 重試延遲時間(毫秒)
|
||||
CACHE_DURATION: 1800, // 快取持續時間(1800秒 = 30分鐘)
|
||||
SECURITY: {
|
||||
ALLOWED_METHODS: ["GET", "HEAD"], // 允許的 HTTP 方法(Git 操作會動態允許 POST)
|
||||
ALLOWED_ORIGINS: ["*"], // 允許的 CORS 來源
|
||||
MAX_PATH_LENGTH: 2048, // 最大路徑長度(字元)
|
||||
},
|
||||
ALLOWED_METHODS: ['GET', 'HEAD'], // 允許的 HTTP 方法(Git 操作會動態允許 POST)
|
||||
ALLOWED_ORIGINS: ['*'], // 允許的 CORS 來源
|
||||
MAX_PATH_LENGTH: 2048 // 最大路徑長度(字元)
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
@@ -2737,9 +2783,9 @@ export const PLATFORMS = {
|
||||
|
||||
// 新平台範例
|
||||
custom: {
|
||||
base: "https://example.com",
|
||||
transform: (path) => path.replace(/^\/custom\//, "/"),
|
||||
},
|
||||
base: 'https://example.com',
|
||||
transform: path => path.replace(/^\/custom\//, '/')
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
@@ -2802,11 +2848,10 @@ A: 檢查來源檔案是否已經在 CDN 邊緣節點快取,首次存取可能
|
||||
**Q: Git 操作失敗?**
|
||||
A: 確認使用了正確的 URL 格式,且 Git 用戶端版本支援 HTTPS 代理。
|
||||
|
||||
**Q: 部署後無法存取?**
|
||||
A: 檢查 Cloudflare Workers 網域是否正確綁定,確認 `wrangler.toml` 配置正確。
|
||||
**Q: 部署後無法存取?** A: 檢查 Cloudflare Workers 網域是否正確綁定,確認
|
||||
`wrangler.toml` 配置正確。
|
||||
|
||||
**Q: 出現 400 錯誤?**
|
||||
A: 檢查 URL 路徑格式,確認平台前綴正確使用。
|
||||
**Q: 出現 400 錯誤?** A: 檢查 URL 路徑格式,確認平台前綴正確使用。
|
||||
|
||||
### 效能監控
|
||||
|
||||
@@ -2827,7 +2872,8 @@ npx wrangler dev --log-level debug
|
||||
|
||||
- **合法合規使用**:本儲存庫旨在為程式碼儲存庫、軟體包註冊表、AI 推理 API、容器鏡像、模型、資料集及更多合法開發者資源提供統一加速服務。使用者應嚴格遵守所在司法管轄區法律法規及相關平台服務條款,任何非法用途的法律責任由使用者自行承擔
|
||||
- **非關聯性與獨立責任**:本儲存庫與各第三方平台不存在任何隸屬、代理或合作關係。任何基於本儲存庫的 fork、二次開發、再分發或衍生版本均由其維護者獨立承擔全部責任;作者、維護者及貢獻者不對衍生儲存庫的任何行為或後果承擔法律或連帶責任
|
||||
- **無擔保與免責條款**:在適用法律允許的最大範圍內,本儲存庫按「現狀(AS IS)」提供,不提供任何明示或暗示擔保(包括但不限於適銷性、特定用途適用性、非侵權等)。對因使用本儲存庫而造成的任何直接或間接損失(包括但不限於資料遺失、業務中斷、利潤損失等),作者、維護者及貢獻者不承擔任何責任
|
||||
- **無擔保與免責條款**:在適用法律允許的最大範圍內,本儲存庫按「現狀(AS
|
||||
IS)」提供,不提供任何明示或暗示擔保(包括但不限於適銷性、特定用途適用性、非侵權等)。對因使用本儲存庫而造成的任何直接或間接損失(包括但不限於資料遺失、業務中斷、利潤損失等),作者、維護者及貢獻者不承擔任何責任
|
||||
- **風險自擔原則**:使用者應自行評估使用風險,確保其使用行為合法合規,不侵犯第三方權益,不得將本儲存庫用於任何違法、侵權、惡意或不當用途
|
||||
- **第三方平台合規**:使用者應遵守相關平台的服務條款、API 使用政策、速率限制及版權要求,避免對源平台造成過載或干擾。各平台對其內容、服務及政策擁有最終解釋權
|
||||
- **智慧財產權保護**:透過本儲存庫獲取的內容受相應版權法保護。使用者應遵守相關許可協議、版權聲明及使用條款,不得從事任何侵犯智慧財產權的行為
|
||||
@@ -2840,7 +2886,8 @@ npx wrangler dev --log-level debug
|
||||
|
||||
我們歡迎各種形式的貢獻!請檢視[貢獻指南](CONTRIBUTING.md)了解如何參與儲存庫開發。
|
||||
|
||||
1. **報告問題**: 使用 [issue 範本](https://github.com/xixu-me/Xget/issues/new/choose)報告 bug 或提出功能請求
|
||||
1. **報告問題**: 使用
|
||||
[issue 範本](https://github.com/xixu-me/Xget/issues/new/choose)報告 bug 或提出功能請求
|
||||
2. **提交程式碼**: fork 儲存庫,建立功能分支,提交 pull request
|
||||
3. **改進文件**: 修正錯誤、新增範例、完善說明
|
||||
4. **測試反饋**: 在不同環境下測試並提供反饋
|
||||
|
||||
Reference in new issue
Block a user