You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into trouble and wasted time trying to figure out how the Cloudflared subdomain .cfargotunnel.com should be applied when creating tunnels via the CLI and subsequent creation of a config.yml file or applied for external configuration purposes like when the tunnel gets used by webhooks (Although I'm still uncertain about this for webhooks, but I struggle to find information to verify this, Reference to Quick Tunnels (trycloudflare.com) and ngrok's approach with their free tier (ngrok-free.app) added to external webhook URL parameters combined with a randomised URL.)
The "naming" of the tunnel threw me off and from my POV it was never made clear that one needs to include one of your "TLDs" registered with Cloudflare as part of the tunnel name.
The proposed edit is an attempt to avoid possible ambiguities and remove uncertainty.
Additional information
Proposed addition to section 3.
The proposal is bordered within the section lines.
3. Create a tunnel and give it a name:
NOTE <NAME> should consist of <tunnel-name> (optional) [DOT]<my-registered-TLD-on-Cloudflare>
For Example:
You are a Cloudflare client (any tier) and have a <some-org.net> TLD registered with Cloudflare.
You want to use a tunnel to route public traffic safely to <my-api-application> hosted on a private network or computer somewhere in your organisation.
So, <NAME> would become <my-api-application>.<some-org.net>.
You don't have to add the sub-domain section <my-api-application>, but it helps to identify your tunnel should you have more than one on the Cloudflare Zero Trust network offering.
cloudflared tunnel create <NAME>
Running this command will:
Create a tunnel by establishing a persistent relationship between the name you provide and a UUID for your tunnel. At this point, no connection is active within the tunnel yet.
1. Cloudflare Automatically Generates the Subdomain ( .cfargotunnel.com):
This happens during the tunnel creation process (i.e., using the cloudflared tunnel create <NAME> command), Cloudflare assigns a unique subdomain in the .cfargotunnel.com namespace to your tunnel. You do not need to manually append .cfargotunnel.com to your tunnel name. This happens automatically.
3. What You Should Do When Using the Generated Subdomain in Configurations:
In the config.yml File Case:
The hostname field must include the complete subdomain, including .cfargotunnel.com, as generated by Cloudflare.
I made a few additional edits to my earlier comment.
Additional Edit: It seems I am totally incorrect about using the cfargotunnel.com subdomain addition or its use anywhere, including in the config.yml file.
My bad. I made inferences based on the appended subdomains applied when using the Quick Tunnels, however, with persistent tunnels cfargotunnel.com seems to be used internally to CF's network routing only.
Existing documentation URL(s)
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/#3-create-a-tunnel-and-give-it-a-name
What changes are you suggesting?
I ran into trouble and wasted time trying to figure out how the Cloudflared subdomain
.cfargotunnel.com
should be applied when creating tunnels via the CLI and subsequent creation of aconfig.yml
file or applied for external configuration purposes like when the tunnel gets used bywebhooks
(Although I'm still uncertain about this for webhooks, but I struggle to find information to verify this, Reference to Quick Tunnels (trycloudflare.com) and ngrok's approach with their free tier (ngrok-free.app) added to external webhook URL parameters combined with a randomised URL.)The "naming" of the tunnel threw me off and from my POV it was never made clear that one needs to include one of your "TLDs" registered with Cloudflare as part of the tunnel name.
The proposed edit is an attempt to avoid possible ambiguities and remove uncertainty.
Additional information
Proposed addition to section 3.
The proposal is bordered within the section lines.
3. Create a tunnel and give it a name:
NOTE
<NAME>
should consist of<tunnel-name>
(optional)[DOT]
<my-registered-TLD-on-Cloudflare>
For Example:
You are a Cloudflare client (any tier) and have a <some-org.net> TLD registered with Cloudflare.
You want to use a tunnel to route public traffic safely to
<my-api-application>
hosted on a private network or computer somewhere in your organisation.So,
<NAME>
would become<my-api-application>.<some-org.net>
.You don't have to add the sub-domain section
<my-api-application>
, but it helps to identify your tunnel should you have more than one on the Cloudflare Zero Trust network offering.Running this command will:
cloudflared
directory..cfargotunnel.com
.NOTE:
1. Cloudflare Automatically Generates the Subdomain ( .cfargotunnel.com):
This happens during the tunnel creation process (i.e., using the
cloudflared tunnel create <NAME>
command), Cloudflare assigns a unique subdomain in the.cfargotunnel.com
namespace to your tunnel. You do not need to manually append.cfargotunnel.com
to your tunnel name. This happens automatically.3. What You Should Do When Using the Generated Subdomain in Configurations:
In the
config.yml
File Case:The
hostname
field must include the complete subdomain, including.cfargotunnel.com
, as generated by Cloudflare.For example:
<NAME>
=your-tunnel-name
This fully-declared hostname defines how external requests are routed through the tunnel to the localhost
service
instances.In Webhooks or External Integration Cases:
.cfargotunnel.com
in the FQDN; e.g.,https://your-tunnel-name.cfargotunnel.com
in configurations like GitHub webhooks.The text was updated successfully, but these errors were encountered: