Multiple domains over tunnel

Hi! I’ve been trying to make this work but haven’t found the way yet.
I configured a tunnel for an X domain. The server hosting the tunnel, also has nginx as reverse proxy. The tunnel, for X domain+app is working perfectly. The issue is that when I try to add another domain to the same tunnel, it does not work.

The tunnel config is something along these lines (removed forward slashes)

tunnel: UUID
credentials-file: /root/.cloudflared/UUID.json
ingress:
- hostname: X
service: https:192.168.1.50
originRequest:
noTLSVerify: true

                - hostname: www.X
                service: https:192.168.1.50
                originRequest:
                    noTLSVerify: true

                - hostname: Y
                service: http:192.168.1.50

                - hostname: www.Y
                service: http:192.168.1.50

                - service: http_status:404

Over in the DNS dashboard for the Y domain, I created two CNAME records (root+www) pointing to the tunnel. The same goes for X domain.

Is that the correct way to do it? Am I missing something?

Thanks in advance for any help you can provide.

Cheers!

Why not try the GUI of tunnel, it’s much simpler

I’m kinda a CLI freak. But maybe that’s the way! I’ll give it a try

In service you didn’t add port number and this should something like this https://localhost:443

I think that’s not necessary. 443 is working.

You know what? This was the solution hahahahaha
Thanks for the suggestion cloudcreatr!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.