Hey there,
you might want to check out my response to a similar issue here: Docker-based Nextcloud AIO with Nginx on a separate Ubuntu VM. It covers some tips that could be helpful when setting up HTTPS and configuring your domain.
If you still run into any trouble, let me know, and we can figure out the next steps together.