DEV Community

Discussion on: Share your localhost with Cloudflare tunnels

Collapse
 
moopet profile image
Ben Sinclair

There are a lot of services that do this, like localtunnel for example, which don't require you to do any weird setup involving "zero trust dashboards" or creating "applications".

I'm not sure how the DNS resolution in this is supposed to work - in your example, you're mapping to demo.boult.me but presumably you have to set that with a CNAME to something inside Cloudflare first.

Collapse
 
hacksore profile image
Sean Boult

I agree that there are less complicated solutions like ngrok or localtunnel that can achive the same thing but if you already use cloudflare it's another option to try out.

When you login to cloudflared CLI you select a domain on your account to use. The second command will create the CNAME for you but you can manually configure it AFAIK.

Configure the CNAME manually

CNAME demo.boult.me <uuid>.cfargotunnel.com
Enter fullscreen mode Exit fullscreen mode
Collapse
 
moopet profile image
Ben Sinclair

Ah, so you need to have a domain managed by Cloudflare already, gotcha.