Is your reverse proxy on the same host as Nextcloud?
I have an example Apache config here. It was written for Docker but should work similarly for snap.
https://help.nextcloud.com/t/howto-ubuntu-docker-nextcloud-talk-collabora/76430
What are you getting when you hit the proxy?