Remote Data folder

Hi community.

I was wondering if it is possible to have nextcloud installed on one host, and have the data folder sit on another host and get SSL-connection along all that way.

The reallife-example could be to have nextcloud installed on a webserver with SSL-certificate and the data-folder on a local harddrive (local webserver). The local server has no fixed IP, but could use a dynIP service.

Is this even possible? And will the SSL-certificate from the webhost cover up the local-host?

Thanks a lot!

*Martin