Nextcloud Behind Nginx Proxy manager

Hi is there a tutorial or has anyone successfully able to run Nextcloud behind Nginx Proxy Manager Docker container. I have issues with error 500 once ssl is enables. Any help or pointer would be greatly appreciated