Next cloud tunnel send me to log in for truenas

I have nextcloud 27.1 running on Truenas core Ryzen 3 3100 and am trying to set up a cloudflare tunnel to access my nextcloud outside of my home network. I was able to set it up with the IP address from the Truenas plug in, but when i enter the created domain (which i have already added as a trusted domain in the config.php), it directs me to the truenas login screen. where am i going wrong?