简体中文 | English
Feel free to help me improve this document.
This script is used for deploying vless-xhttp proxy on Cloudflare workers.
- Pre-requirment: a domain managed by Cloudflare.
- Enable
gRPCfeature innetworksettings in Cloudflare config panel. - Create a DNS
A recordfor a new sub-domain with a random IPv4 address. Eanbleproxyoption. - Create a worker and copy-and-paste the source code from
src/index.js. - Goto workers' config panel, add a route to your new sub-domain. e.g.
sub.your-website.com/*.
There are some configurations at the top of the source code.
UUID = "..."need no explainsPROXY = "cfproxy.com"(optional) reverse proxy for websites using Cloudflare CDN
You can set eviroment variables in workers' config panel too. Env-vars have higher priority.
If every thing goes right, you should see a Hello world! when accessing https://sub.your-website.com/.
Viste https://sub.your-website.com/xhttp/?uuid=YOUR-UUID/ to see client config.json.
- This script is slow, do not expect too much.
- Please do not abuse free service.
- The more people knows about this script, the quicker this script would be banned.