Hi! Thanks for your reply.
Upload and download speeds are correct if I put DNS only, if I toggle the proxy button it straight goes to error 522.
The thing I didn’t mention was, that I’m using Nginx proxy manager, and yes, it works with https if I put DNS only.
The installation of apache and nextcloud is fresh, not a lot is configured. I use SSL/TLS in full with self signed certificates with lets encrypt. If you need me to provide any configuration file im willing to post it.