A tool to ensure seamless access to APIs from sanctioned regions using Cloudflare Workers. This project dynamically routes API calls through a global edge network to bypass regional restrictions.
- Dynamic API routing via Workers KV
- Scalable and secure
- Easy to configure and deploy
-
Clone the repository:
git clone https://github.com/jaavid/api-access-gateway.git cd api-access-gateway
-
Install Cloudflare Wrangler:
npm install -g wrangler
-
Configure wrangler.toml:
- Replace your-account-id with your Cloudflare account ID.
- Replace your-zone-id with your Cloudflare zone ID.
- Replace your-namespace-id with your Workers KV namespace ID.
-
Deploy the Worker:
wrangler publish
- Requests are routed through Cloudflare Workers.
- Workers KV stores API host mappings dynamically.
- Calls are forwarded to the appropriate API via a single Worker.
- Telegram:
https://your-worker-domain.workers.dev/telegram/bot1234:123/sendMessage
- Open AI Service:
https://your-worker-domain.workers.dev/ai/v1/chat/completions
We welcome contributions! Please read CONTRIBUTING.md for details.