Re:Exposing a web service with Cloudflare Tunnel
by mdoms on Tuesday February 08, 2022 @03:28PM
(#30264154)
I'm a little confused about hostname routing. You set up a config file with hostname values like either of the two below:
Then later you explicitly route to a subdomain for the simple case (the second one above):
Now you're on a subdomain, how would I handle this routing case for the more complex case from above?
[ Parent
| on HN ]
Re:Exposing a web service with Cloudflare Tunnel
by ErisaDev on Tuesday February 08, 2022 @05:12PM
(#30265563)
Hi, I'm the author of the blog post being promoted here.
The `clouflared tunnel route dns` command creates thee DNS record mapping the tunnel to the domain. The tunnels config maps the hostname to the local service, and you can have multiple of those for each service. So for the example above, you would create a DNS record for each domain pointing to the same one tunnel, and that tunnel will route based on the ingress rules.