I setup a tunnel in cloudflare’s zero trust and have it running pointed at my nodejs webserver. Cloudflare automatically created a CNAME record pointed at that tunnel for me, however, when I try to visit that page, I get a code 1000 error:
Another observation of mine worth noting is that the tunnel works fine when I don’t connect it to a cloudflare account or domain name (i.e. use the free tunnel without an account). The issue only comes about when I try to have the tunnel go to my domain name on cloudflare’s DNS.
Here’s a screenshot of the attempt (working) when I don’t connect it to an account [sorry for all of the burred out lines- I don’t want to leak my IP]:
To anyone who comes across this issue in the future:
After working on this for a little under a day, I found the fix. Clear your DNS records completely and then create a new tunnel on the Zero Trust website. After that, install cloudflared (I installed the windows .msi file). Once you have done that, follow these instructions:
Set your public hostname to your domain name (example . com) and set the service to your server address with the port and protocol (https:// 111 . 111 . 111 : 443).
Click on your public hostname in that same menu and hit configure. Then hit additional application settings. Make sure No TLS Verify is checked.