I have a tunnel in use for domain1, with cloudflared running within a docker container.
I want to create a second tunnel with a second domain (domain2).
Do I need to run two cloudflared containers (as I expect tokens will differ), or is it possible to somehow link the existing cloudflared instance to the second domain?
Caution: Rank beginner here.
February 23, 2023, 9:57pm
May I ask why creating and using 2 tunnels for 2 domains?
You could run multiple services and/or domains through the one tunnel, just need to define/add the 2nd one or 3rd service and more to the same
config.yml file and setup the routing/create a
CNAME for the 2nd hostname/domain.
Yes, it is possible from what I understand what you want to achieve.
We all are, or at least were
We’re happy to assist
A bit helpful post:
When you run a cloudflared tunnel, the only thing needed is a UUID.json file (called credentials file
Useful terms · Cloudflare Zero Trust docs).
That file contains the tunnel UUID (in the file name), the tunnel Name, tunnel secret and account (in the file JSON contents).
Each cloudflared tunnel command can use 1 tunnel UUID.json file and run that tunnel.
That said, you can run as many cloudflared tunnel processes as you want within the same host/origin/machine, using as many different UUID.j…
My error. I thought the zero trust feature was per registered domain. I see that it is per Cloudflare account.
After drilling down in my domain2 settings, I see that it is quite simple to add a domain2 application to my existing tunnel.
Solved. Thank you.
February 27, 2023, 3:27am
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.