I had been using Cloudflare ZTNA Tunnels to expose a couple of self-hosted apps (Nextcloud and BlueIris) to the internet. They had both been working fine, but I borked my Nextcloud install so have started from scratch using NGINX as the webserver rather than Apache2.
I used certbot to install a certificate for the internal domain (lets call it nc.internal.tld for now), and it’s working great on the local network. I want to use Cloudflare to make it available on the external domain (nc.external.tld), so I’ve set up the Cloudflare DNS record for nc.external.tld to point via my tunnel.
However, whenever I enter nc.external.tld into my browser I get the “too many redirects” error, and sure enough I can see lots of 301 Permanently Moved errors.
My other apps are still working on the external domains.
I’ve tried changing the SSL/TLS settings in Cloudflare to every setting possible (Full (strict), Full, Flexible and Off), but these haven’t helped. I’ve followed the various suggested fixes and diagnostic guides but none of these have got me to a solution.
Wondering if anyone has any pointers or ideas?