Storing nextcloud files on B2

I was planning on using the nextcloud instance that comes with mailinabox but the VM I have only has 20gb storage and adding more costs a whole lot since its on an SSD. The pricing for B2 storage seems very good but I have no idea what the process for storing the files from nextcloud on b2 would be. Has anyone tried this, if so how did it go?