Migration to Traefik with Nextcloud/LinuxServer image: need help!

This seemed to be the key. I found some topics concerning this:

https://www.reddit.com/r/selfhosted/comments/f7mytc/linuxserverionextcloud_with_traefik_20/fict7m4/

Which eventually led me here:

Where you already solved this issue!

I removed these lines: https://github.com/linuxserver/docker-nextcloud/blob/master/root/defaults/default#L6-L12

Do I need to do more than this?

I also tried another option: to change port 80 port 443 and leave the default file as is. Because I would prefer to change as little as possible in my docker container config files.

  - "traefik.http.services.nextcloud-secure.loadbalancer.server.port=443"

but that gave me this error:

400 Bad Request
The plain HTTP request was sent to HTTPS port

Do you think a solution like this would be possible?