Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.2 KB

File metadata and controls

26 lines (19 loc) · 1.2 KB

简体中文 | English

Feel free to help me improve this document.

This script is used for deploying vless-xhttp proxy on Cloudflare workers.

Usage

  1. Pre-requirment: a domain managed by Cloudflare.
  2. Enable gRPC feature in network settings in Cloudflare config panel.
  3. Create a DNS A record for a new sub-domain with a random IPv4 address. Eanble proxy option.
  4. Create a worker and copy-and-paste the source code from src/index.js.
  5. 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 explains
  • PROXY = "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.

Notice

  • 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.