Here is their answer: Change nextcloud snap port - ℹ️ Support - Nextcloud community
If I do this, I keep the https from let's encrypt from Nextcloud without doing any other manipulations + https from Apache on port 443 (which I have to change). I wanted to be sure not to break anything on the certificate side by changing the port of nextcloud? Thanks