中文说明 | English
A Cloudflare Worker service that redirects electerm GitHub release download requests to a working proxy.
It supports any repository under the electerm organization (e.g. electerm/electerm, electerm/electerm-web, etc.).
When you access:
https://electerm-mirror.html5beta.com/https://github.com/electerm/electerm/releases/download/v3.6.6/electerm-3.6.6-mac10-x64.dmg.blockmap
It redirects to:
https://gh-proxy.org/https://github.com/electerm/electerm/releases/download/v3.6.6/electerm-3.6.6-mac10-x64.dmg.blockmap```
## Supported URL Pattern
Any GitHub release download URL under the `electerm` organization is supported:
For example, `electerm/electerm`, `electerm/electerm-web`, or any other `electerm/*` repo.
## Features
- **Automatic Proxy Health Check**: Periodically checks proxy availability and response time
- **Smart Proxy Selection**: Automatically selects the fastest available proxy
- **Easy to Extend**: Add more proxies in the configuration
## Supported Proxies
Currently supported proxy: [gh-proxy.org](https://gh-proxy.org)
## Deployment
### Prerequisites
1. Install Wrangler CLI:
```bash
npm install -g wrangler
- Login to Cloudflare:
wrangler login- Set up GitHub Secrets:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
wrangler deployPush to main branch to trigger automatic deployment.
├── src/
│ └── worker.js # Main worker code
├── wrangler.toml # Wrangler configuration
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Action deployment
└── README.md
MIT