Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electerm-mirror

中文说明 | 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.).

How It Works

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:

https://electerm-mirror.html5beta.com/https://github.com/electerm/{repo}/releases/download/{tag}/{asset}


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
  1. Login to Cloudflare:
wrangler login
  1. Set up GitHub Secrets:
    • CLOUDFLARE_API_TOKEN
    • CLOUDFLARE_ACCOUNT_ID

Manual Deploy

wrangler deploy

GitHub Action

Push to main branch to trigger automatic deployment.

Project Structure

├── src/
│   └── worker.js      # Main worker code
├── wrangler.toml       # Wrangler configuration
├── .github/
│   └── workflows/
│       └── deploy.yml  # GitHub Action deployment
└── README.md

License

MIT

About

A electerm download mirror worker

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages