NextCloud linked to External Storage

Hello! I have a NextCloud sever running on a Ubuntu Server vm. I want to know if are any possibilities to connect a windows server shared folder to NextClound when all my NextCloud files to be located.
It is much good if I can connect it to a Synology NAS, to store the files on it.