I’m really not too sure about the snap version. When I found out the limitations of the snap version and had a bunch of trouble with Collabora, I switched to Docker.
I found this thread that seems to have some info. https://help.nextcloud.com/t/snap-installation-change-php-apache-and-nextcloud-configs/32858/2