Can't access nextcloud with cloudflare tunnel


I have setup nextcloud on my proxmox with the following versions
Nextcloud : 27.1.5
Operating system : debian 12
Proxmox: 8.3

After this I did setup a cloudflare tunnel and this tunnel is working fine for my wordpress and nginx server, but this tunnel is not working for my nextcloud.
The error I receive when I want to access my nextcloud from external is ERR_TOO_MANY_REDIRECTS I did disable Rocket Loader in Cloudflare as read on this forum but without success. I also added my domain name to the trusted domains, but still no luck…
Could anyone please point me to the correct direction?

Thanks a lot

Try searching around for this Search results for 'ERR_TOO_MANY_REDIRECTS' - Nextcloud community
Also ask cloudflare support since the issue remains after adding the trusted domain.
Likely the issue is not with Nextcloud, but impossible to advise without logs. Since you are using Cloudflare you’ll most likely need to resolve it there.