🚀 GitHub & Google 镜像代理服务

⚠️ 注意:此服务仅用于解决网络访问问题,请合理使用。
Flutter Pub包:
原始:https://pub.dartlang.org/api/packages/flutter/versions/latest
代理:https://your-worker.your-subdomain.workers.dev/pub.dartlang.org/api/packages/flutter/versions/latest
Rust Crates:
原始:https://crates.io/api/v1/crates/serde
代理:https://your-worker.your-subdomain.workers.dev/crates.io/api/v1/crates/serde

📖 使用方法

在原始URL前添加此Workers域名,例如:

GitHub文件下载:
原始:https://github.com/user/repo/archive/main.zip
代理:https://your-worker.your-subdomain.workers.dev/github.com/user/repo/archive/main.zip
GitHub Raw文件:
原始:https://raw.githubusercontent.com/user/repo/main/file.txt
代理:https://your-worker.your-subdomain.workers.dev/raw.githubusercontent.com/user/repo/main/file.txt
Google Maven:
原始:https://maven.google.com/androidx/core/core/1.7.0/core-1.7.0.aar
代理:https://your-worker.your-subdomain.workers.dev/maven.google.com/androidx/core/core/1.7.0/core-1.7.0.aar

🛠️ 配置说明

VSCode配置

在VSCode设置中添加:

"http.proxy": "https://your-worker.your-subdomain.workers.dev"

Android Studio配置

在项目根目录的 gradle.properties 文件中添加:

systemProp.https.proxyHost=your-worker.your-subdomain.workers.dev
systemProp.https.proxyPort=443
systemProp.http.proxyHost=your-worker.your-subdomain.workers.dev
systemProp.http.proxyPort=443

Flutter配置

设置环境变量:

# Windows (PowerShell)
$env:PUB_HOSTED_URL="https://your-worker.your-subdomain.workers.dev/pub.dartlang.org"
$env:FLUTTER_STORAGE_BASE_URL="https://your-worker.your-subdomain.workers.dev/storage.googleapis.com"

# macOS/Linux
export PUB_HOSTED_URL="https://your-worker.your-subdomain.workers.dev/pub.dartlang.org"
export FLUTTER_STORAGE_BASE_URL="https://your-worker.your-subdomain.workers.dev/storage.googleapis.com"

Rust Cargo配置

~/.cargo/config.toml 中添加:

[source.crates-io]
registry = "https://your-worker.your-subdomain.workers.dev/index.crates.io"
replace-with = "mirror"

[source.mirror]
registry = "https://your-worker.your-subdomain.workers.dev/index.crates.io"

Swift Package Manager

在Xcode项目中使用镜像URL:

https://your-worker.your-subdomain.workers.dev/github.com/realm/SwiftLint

✅ 支持的服务

📊 状态

服务正常运行中... 🟢


如有问题,请检查URL格式是否正确。

🔧 调试信息

请求路径: /
请求主机: githublink.wygym.eu.org
完整URL: https://githublink.wygym.eu.org/

✅ 测试链接

点击测试是否正常工作: