Cloudflare Worker that acts as an egress proxy for UniplayOS. Requests routed through it exit from Cloudflare's IP range, bypassing IP-based blocks on target sites.
npm install -g wrangler
wrangler login
wrangler deployAfter deploying, copy the worker URL (e.g. https://uniplayos-proxy.your-subdomain.workers.dev) and set it in your .env:
CF_WORKER_URL=https://uniplay-proxy.your-subdomain.workers.dev
Without this variable set, UniplayOS proxies directly as normal.
- Go to dash.cloudflare.com and log in
- In the sidebar, go to Workers & Pages → Create
- Select Create Worker
- Give it a name (e.g.
uniplay-proxy) - Change the file path to
cf-worker/ - Click Deploy
Your worker URL will be shown at the top of the editor, something like https://uniplayos-proxy.your-subdomain.workers.dev. Copy that and set it as CF_WORKER_URL in your environment.
The worker receives requests with a ?url= query param and fetches the target on behalf of the caller, forwarding headers and streaming the response back. The outbound request to the target site originates from Cloudflare's network.