mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 10:15:10 +00:00
feat: add Cloudflare Worker implementation for edge-to-edge streaming bypass
- Add worker.js: full API on Cloudflare's edge network (1720 lines) - Add wrangler.toml: deployment configuration for wrangler CLI - Streaming endpoints now bypass Cloudflare bot detection via edge-to-edge - Zero cold starts, 100K free requests/day, no npm dependencies - 15 endpoints: search, trending, info, episodes, watch, genres, random, etc. - Self-healing fallback: direct → ScraperAPI → FlareSolverr - Proper code style: box headers, JSDoc, feature markers, inline notes - Bump version to 2.3.2 across package.json, server.js, apiRoutes.js Fixes #2
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
name = "miruroapi"
|
||||
main = "worker.js"
|
||||
compatibility_date = "2024-01-01"
|
||||
|
||||
# Cloudflare Worker configuration for MiruroAPI
|
||||
# Deploy with: wrangler deploy
|
||||
|
||||
# Environment variables (set via wrangler secret put or dashboard)
|
||||
# SCRAPER_API_KEY = "" # ScraperAPI premium key (optional, $49/mo)
|
||||
# FLARESOLVERR_URL = "" # FlareSolverr Docker instance URL (optional)
|
||||
|
||||
# Route configuration (optional — for custom domains)
|
||||
# routes = [
|
||||
# { pattern = "api.your-domain.com/api/*", zone_name = "your-domain.com" }
|
||||
# ]
|
||||
|
||||
# Limits
|
||||
[limits]
|
||||
cpu_ms = 30000
|
||||
|
||||
# Compatibility flags
|
||||
compatibility_flags = ["nodejs_compat"]
|
||||
Reference in New Issue
Block a user