Connecting Cryptomator to a NAS

Hi guys, I‘m new to your Community but I habe been using Cryptomator for years with Dropbox. Recently I decided to set up my own NAS with an RaspberryPi. (Maybe with NextCloud)

So my question is, can I use Cryptomator with my Iphone to create a tresor on my NAS to protect my photos?

Thank you all for your help

Edit: Maybe WebDAV is the solution