This tutorial by user John Ramsden shows us how to get Nextcloud set up in a FreeBSD jail. Nextcloud is an open-source file syncing platform designed to set up a cloud on your own network. See the link below for the full set of instructions.

 I recently setup Nextcloud 12 inside a FreeBSD jail in order to allow me access to files I might need while at University. I figured this would be a optimal solution for files that I might need access to unexpectedly, on computers where I am not in complete control. My Nextcloud instance is externally accessible, and yet if someone were to get inside my Jail, I could rest easy knowing they still didn’t have access to the rest of my host server. I chronicled the setup process including jail setup using iocage, https with Lets Encrypt, and full setup of the web stack.

Full tutorial: https://ramsdenj.com/2017/06/05/nextcloud-in-a-jail-on-freebsd.html