trying to setup a tunnel for a cloudflare domain

theres tonnes of tutorials online on how to create a cloudflare tunnel that routes to a subdomain, but no instructions on how to setup a tunnel that routes to your main domain, is it possible to do?
10 Replies
Hello, I’m Allie!
It should be the exact same, just using your main domain instead. As an example, this tutorial is up to date. Follow steps one and two to route your domain to your tunnel
Via the dashboard · Cloudflare Zero Trust docs
Follow this step-by-step guide to get your first tunnel up and running using Zero Trust.
Anga
AngaOP16mo ago
once the tunnel is created, theres no intructions on how to start it
Anga
AngaOP16mo ago
and ive just been staring at this all day
Anga
AngaOP16mo ago
if i try cloudflared tunnel run anga.pro it gives me an error:
[2023-08-16T12:02:10Z] ERR Cannot determine default origin certificate path. No file cert.pem in [~/.cloudflared ~/.cloudflare-warp /cloudflare-warp /etc/cloudfl ared /usr/local/etc/cloudflared]. You need to specify the origin certificate path by specifying the origincert option in the configuration file, or set TUNNEL ORIGIN_CERT environment variable originCertPath= error parsing tunnel ID: Error locating origin cert: client didn't specify origincert path
[2023-08-16T12:02:10Z] ERR Cannot determine default origin certificate path. No file cert.pem in [~/.cloudflared ~/.cloudflare-warp /cloudflare-warp /etc/cloudfl ared /usr/local/etc/cloudflared]. You need to specify the origin certificate path by specifying the origincert option in the configuration file, or set TUNNEL ORIGIN_CERT environment variable originCertPath= error parsing tunnel ID: Error locating origin cert: client didn't specify origincert path
Hello, I’m Allie!
It seems to be running for me:
Anga
AngaOP16mo ago
what in the world- thanks!
Hello, I’m Allie!
One of the commands it asks you to run during setup creates a cloudflared service, which means it runs in the background.
Anga
AngaOP16mo ago
will it still work after i restart the OS?
Hello, I’m Allie!
Running as a service helps ensure the availability of cloudflared to your origin by allowing the program to start at boot and continue running while your origin is online.
Source
Anga
AngaOP16mo ago
it did thanks!
Want results from more Discord servers?
Add your server