I searched a lot of topics and still have this problem.
I use a cloudflare tunnel, I installed other applications and I manage to connect from outside the network without problems, but with nextcloud I can’t.
In nextcloud - administration settings - sharring we have trusted servers, unfortunatelly i put the server address there and is not saving…