mirror of
https://github.com/ZaoCoreLabs/AnimePahe-Proxy.git
synced 2026-03-20 18:11:26 +00:00
Lightweight AnimePahe Proxy
- JavaScript 78.5%
- HTML 20.4%
- Dockerfile 1.1%
| .github/workflows | ||
| html | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| bun.lock | ||
| cf_worker.js | ||
| config.js | ||
| docker-compose.yml | ||
| Dockerfile | ||
| index.js | ||
| package.json | ||
| README.md | ||
| vercel.json | ||
| wrangler.toml | ||
AnimePahe M3U8 Proxy
A lightweight M3U8 proxy for Express and Cloudflare Workers. Handles Referer, Origin, and User-Agent headers to bypass restrictions.
🚀 Cloudflare Worker (Recommended)
- Configure: Edit
ALLOWED_ORIGINSinwrangler.toml. Other settings can be modified incf_worker.js. - Deploy:
npx wrangler deploy
💻 Express (Node.js)
- Install:
npm install - Run:
npm start(Default port:3000) - Config: Edit
.envorconfig.js.
🛠️ Usage
Endpoint: GET /m3u8-proxy?url=<TARGET_URL>&headers=<JSON_STRING>
Example:
https://your-proxy.com/m3u8-proxy?url=https://example.com/video.m3u8
url: The M3U8/segment URL to proxy.headers(optional): JSON-encoded headers (e.g.,{"Referer": "https://site.com"}).
Playground (Express Only): Access GET / in your browser.