Add a tunnel
1
Create it in Cloudflare
Zero Trust → Networks → Tunnels → Create a tunnel → Cloudflared. Copy the token (the long string after
--token).2
Save it in Laravelify
Tunnels → New tunnel: a name and the token. Laravelify installs a
cloudflared service for it (laravelify-tunnel-{slug}).3
Use it on websites
On each website’s General tab, pick the tunnel. Its domain is added to the tunnel’s ingress.
4
Add the public hostname
In Cloudflare, tunnel → Public hostnames → add the site’s domain with the service
http://localhost:80.Rules
- A website uses at most one tunnel; one tunnel can serve many websites.
- Every hostname goes to
http://127.0.0.1:80, and nginx picks the site byserver_name. - TLS stays at Cloudflare. Set SSL/TLS mode to Full in Cloudflare.
- Visitor IPs are taken from
CF-Connecting-IP(only for requests coming from the local tunnel), so Monitoring and IP blocking see the real visitor.