Back to Articles

utils

Cloudflare Pages: Deploying a Free-Forever Node, Part Two

Cloudflare Pages: Deploying a Free-Forever Node, Part Two

This tutorial is for learning about Cloudflare deployment, not for commercial use.

Register with Cloudflare

Cloudflare is a well-known CDN provider with services such as reverse proxies, tunneling, and SSL. Its individual free plan covers the learning setup in this tutorial.

Workers and Pages are among its services. Here, we use Pages to deploy a VLESS node service.

Visit Cloudflare and choose the free plan near the bottom of the page.

Cloudflare registration

The registration process is straightforward. Remember to verify your email.

Create a KV namespace

  1. In your Cloudflare account, select Storage & databases → Workers KV, enter a namespace name, and click Create.

Create a KV namespace

Create a Pages application

  1. Download the latest project ZIP: edgetunnel-main.zip.
  2. Select Compute & AI → Workers & Pages → Create application.

Create application

  1. Click Get started.

Get started

Choose a deployment method

  1. Enter a project name and click Create project.

Create project

  1. Upload the ZIP you downloaded, then click Deploy site.

Upload and deploy

  1. After deployment succeeds, click Continue to project.

Continue to project

  1. Open Settings → Variables and Secrets to add a variable.

Variables and secrets

  1. Add ADMIN and set its value to the administrator login password. Click Save.

Set the administrator password

  1. Bind the KV namespace created earlier. The binding's variable name must be uppercase KV.

Choose the KV namespace

Configure the binding

Save the binding

  1. After saving, click Create deployment.

Create another deployment

  1. Upload the project again, then click Save and Deploy.

Save and deploy

  1. The success page confirms deployment and provides the production URL.

Production deployment

  1. Open the deployed URL in a browser and append /login, for example https://edt-8pd.pages.dev/login. Sign in with the password you set in the variable.

Login page

Project dashboard

Congratulations, your own deployment is ready. Subscription setup is outside the scope of this walkthrough.

Finally, do not share your account or connection links with others, or use them for profit. Doing so may violate criminal law and have serious consequences.