一个简单的镜像站.
powered by Cloudflare Workers & docker registry.
在 Github 链接前加上 https://gh.shirosakihana.moe/
.
e.g.:
# 原链接 https://github.com/username/repo/releases/download/v1.0.0/file.zip
# 更改后 https://gh.shirosakihana.moe/https://github.com/username/repo/releases/download/v1.0.0/file.zip
# 原链接 https://raw.githubusercontent.com/username/repo/main/file.txt
# 更改后 https://gh.shirosakihana.moe/https://raw.githubusercontent.com/username/repo/main/file.txt
支持的源:
类型 | 地址 |
---|---|
Docker Hub | dhub.shirosakihana.moe |
GitHub Container Registry (ghcr) | ghcr.shirosakihana.moe |
配置 Docker 后在 docker pull 地址前加上镜像地址.
e.g.:
# 编辑 Docker 配置文件
sudo vim /etc/docker/daemon.json
# 添加镜像配置(保留原有配置需用逗号分隔)
{
"registry-mirrors": [
"https://dhub.shirosakihana.moe",
"https://ghcr.shirosakihana.moe"
]
}
# 重载服务配置
sudo systemctl daemon-reload
sudo systemctl restart docker
# 原地址 docker pull nginx
# 更改后 docker pull dhub.shirosakihana.moe/library/nginx
# 原地址 docker pull username/repo:tag
# 更改后 docker pull dhub.shirosakihana.moe/username/repo:tag
# 原地址 docker pull ghcr.io/username/repo:tag
# 更改后 docker pull ghcr.shirosakihana.moe/username/repo:tag
将原链接的 https://mikanani.me
替换为 https://mikanani.shirosakihana.moe
.
e.g.:
# 原链接 https://mikanani.me/RSS/Bangumi?bangumiId=1833&subgroupid=370
# 更改后 https://mikanani.shirosakihana.moe/RSS/Bangumi?bangumiId=1833&subgroupid=370
仅代理了 /RSS 目录方便 RSS 订阅, 仍需科学上网获取订阅链接.