Mirror Worker

运行于 Cloudflare 边缘网络的资源镜像加速 · 将下述地址中的 HOST 替换为 docker.sxem.top

Docker Hub /v2/…

上游:registry-1.docker.io
Registry v2 协议全兼容(自动完成 token 认证),可直接配置为 registry-mirror。官方镜像请用 library/ 前缀。
/etc/docker/daemon.json
{
  "registry-mirrors": ["https://docker.sxem.top"]
}

# 或显式拉取(官方镜像需带 library/ 前缀):
# docker pull docker.sxem.top/library/nginx

npm /npm/…

上游:registry.npmjs.org
元数据与 tarball 包地址已重写为镜像地址。
npm / pnpm / yarn
npm config set registry https://docker.sxem.top/npm/
# pnpm config set registry https://docker.sxem.top/npm/
# yarn config set registry https://docker.sxem.top/npm/

PyPI /pypi/…

上游:pypi.org
/simple 索引中的文件下载链接自动重写到 /pypi-files。
pip
pip config set global.index-url https://docker.sxem.top/pypi/simple

GitHub /gh/…

上游:raw / github.com / api / codeload
raw 文件、Releases、归档下载、API,以及 git clone/fetch 拉取加速。
路径映射与 git 加速
# raw:      /gh/<owner>/<repo>/<ref>/<file>
# 站内页面:  /gh/github/<owner>/<repo>/releases/download/…
# API:      /gh/api/repos/<owner>/<repo>/…
# 归档:     /gh/codeload/<owner>/<repo>/tar.gz/refs/tags/v1.0.0

# git 拉取加速(仅 fetch,push 走原地址):
git config --global url."https://docker.sxem.top/gh/github/".insteadOf "https://github.com/"
git config --global url."https://github.com/".pushInsteadOf "https://docker.sxem.top/gh/github/"

HuggingFace /hf/…

上游:huggingface.co
模型/数据集 resolve 下载(LFS 跳转自动跟随),设置 HF_ENDPOINT 即可全局生效。
huggingface_hub / hf-cli
export HF_ENDPOINT=https://docker.sxem.top/hf
# hf download gpt2
# huggingface-cli download bigscience/bloom-560m

Go Modules /goproxy/…

上游:proxy.golang.org + sum.golang.org
module proxy 协议 + checksum database 代理(sumdb 请求自动转发)。
go
go env -w GOPROXY=https://docker.sxem.top/goproxy,direct
go env -w GOSUMDB=sum.golang.org   # sumdb 会经由 GOPROXY 代理

crates.io /crates-index/… /crates/…

上游:index.crates.io + static.crates.io
sparse 索引协议;索引 config.json 中的下载地址已重写。
~/.cargo/config.toml
[source.crates-io]
replace-with = 'mirror'

[source.mirror]
registry = "sparse+https://docker.sxem.top/crates-index/"

Maven Central /maven/…

上游:repo1.maven.org/maven2
依赖 jar/pom 与 metadata 代理(SNAPSHOT 元数据保持短缓存)。
settings.xml
<mirror>
  <id>mirror</id>
  <mirrorOf>central</mirrorOf>
  <url>https://docker.sxem.top/maven</url>
</mirror>

Debian / Ubuntu / Alpine /debian /ubuntu /alpine

上游:deb.debian.org / archive.ubuntu.com / dl-cdn.alpinelinux.org
apt / apk 软件源,.deb/.apk 长缓存。
sources.list / repositories
# Debian (/etc/apt/sources.list):
deb https://docker.sxem.top/debian bookworm main
deb https://docker.sxem.top/debian bookworm-updates main

# Alpine (/etc/apk/repositories):
https://docker.sxem.top/alpine/v3.20/main
https://docker.sxem.top/alpine/v3.20/community