Skip to main content

Website CloudFlare Tunneling

This guide explains how to securely connect your WordPress server to the internet using Cloudflare Zero Trust Tunnels (cloudflared).


Prerequisites

  • A web server deployed through Revitalize Hosting.

  • A Cloudflare account with Zero Trust enabled.

  • A domain managed under Cloudflare.


Step 1: Log in to Cloudflare Zero Trust

  1. Go to the Cloudflare Zero Trust Dashboard

  2. Navigate to Networks → Tunnels.


Step 2: Create a Tunnel

  1. Click Create a tunnel.

  2. Choose Cloudflared as the connector type.

  3. Click Next.


Step 3: Configure the Tunnel

  1. Enter a name for your tunnel (e.g., web01).

  2. Click Save tunnel.

  3. Copy and save the tunnel token (this token is very long and unique, usually starts with ey).


Step 4: Add the Token

  1. In your Pterodactyl container, paste the tunnel token you saved from Step 3. (Under Startup in the Game Panel)

  2. This links your container to your Cloudflare Zero Trust account.


Step 5: Add a Public Hostname

  1. In the Zero Trust dashboard, under your tunnel, click Add a public hostname.

  2. Enter the hostname you want to use (example: web.example.com).


Step 6: Set the Service Type

  1. Choose HTTP as the service type.

  2. For the URL, always use: localhost:<your web server port> Example: localhost:8080


Step 7: Reboot

1. Reboot your server in the Game Panel