I configured Nextcloud 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. Nextcloud bitcoin conf location linux a variety of features such as calendar synchronization, email, collaborative editing, and even video conferencing.
On my latest install I am not making use of the file synchronization at all, I’ve attached external storage over NFS and am synchronizing the files using Syncthing. This lets me use my preferred sync client, but I’m still able to access all my files from the web interface or Nextcloud client. So far this has been the configuration I am most satisfied with. In order to maintain network security, and at the same time allow my Nextcloud to be open to the internet, I utilized a combination of tools. I also put Nextloud inside a FreeBSD jail which is incredibly convenient. While I obviously wouldn’t rely on this fact alone, it does increase security greatly. Configuration In regards to configuration I went with the recommended setup for running Nextcloud.
I would have liked to use Nginx and Postgres, but the majority of the documentation for setting up Nextcloud is for Apache – with only a small mention of Nginx, and no mention of Postgres. Management To manage my jails I’m using iocage. In terms of jail managers it’s a fairly new player in the game of jail management and is being very actively developed. It just had a full rewrite in Python, and while the code in the background might be different, the actual user interface has stayed very similar. The new version written in Python can be installed from the ports tree as either the Python2. Binary packages only exist for the Python2. 7 version so to install the package run pkg install py27-iocage.
As of this moment the Python 2. Due to using a different location for the pool mountpoint, i. I too ran into this issue while trying to use ZFS mounts on FreeNAS with iocage. The solution I use, which is in fact how FreeNAS mounts datasets into the old style jails, is to use nullfs mounts.
While I didn’t intend this article for FreeNAS, and I can’t promise it will work since I haven’t tried it myself, it seems like a lot of people are trying to use Nextcloud on it, since it’s been mentioned to me a few times now. I have added a note at the bottom regarding how this is done, and if you’re using FreeNAS you should probably take a look at it before continuing. YES Fetch the freebsd jail template. This will create the following datasets and then fetch and extract the requested release. 0-RELEASE Create the jail With the shared ip set up, create a new jail.