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
-
Go to the Cloudflare Zero Trust Dashboard
-
Navigate to Networks → Tunnels.
Step 2: Create a Tunnel
-
Click Create a tunnel.
-
Choose Cloudflared as the connector type.
-
Click Next.
Step 3: Configure the Tunnel
-
Enter a name for your tunnel (e.g.,
web01
). -
Click Save tunnel.
-
Copy and save the tunnel token (this token is very long and unique, usually starts with ey).
Step 4: Add the Token
-
In your Pterodactyl container, paste the tunnel token you saved from Step 3. (Under Startup in the Game Panel)
-
This links your container to your Cloudflare Zero Trust account.
Step 5: Add a Public Hostname
-
In the Zero Trust dashboard, under your tunnel, click Add a public hostname.
-
Enter the hostname you want to use (example:
web.example.com
).
Step 6: Set the Service Type
-
Choose HTTP as the service type.
-
For the URL, always use:
localhost:<your web server port>
Example:localhost:8080
Step 7: Reboot
1. Reboot your server in the Game Panel