Error 522 with my nextcloud

Hey, I have connected Cloudflare to my Nextcloud server and now I am getting error 522

when I set it to DNS mode only its works fine with https but when I use the proxy mode I get the 522 error

I have added the trusted_proxies to the nextcloud config
and I have the cloudflare ipv4 ips into the iptables
but still, nothing works

I am not blocking anything

what should I check/do ?

thank you

Its seems that I am getting now error 502

May I ask if you’re running Nextcloud in a container environment like Docker or? :thinking:

Oh sorry I forgot to mention that I am running it inside ubuntu server (virtualbox)

I created a tunnel and changed No TLS Verify to enable but it still 502 I am not sure why

it’s saying status healthy