Scripted installation of Nextcloud 23 in an iocage jail

I’ve written a script to install Nextcloud 23 in an iocage jail under FreeNAS 11.3/TrueNAS 12.0. This script uses the Caddy web server, which will manage Let’s Encrypt TLS certificates for you automatically. It creates the jail, installs and configures the web server, the database server, Nextcloud itself, and all its other dependencies. The script itself, and further instructions, are on GitHub:

With the release of Nextcloud 17, I’ve created a new branch of this script to install that version. To try it out, run git clone -b nextcloud-17 It installs fine for me, but has had only minimal testing. I’ll probably merge this into master in a week or so if I don’t find or hear of any problems with it.

With this branch, I’ve also added a simple script to remove the Let’s Encrypt staging CA from your Caddyfile and obtain a trusted cert. See either the README or the end of the script’s output for more information.

I’ve made a few updates to the nextcloud-17 branch, mainly to update the Caddyfiles for pretty URLs and to increase some timeouts. It looks like it’s working well and will probably be merged into master shortly. In testing, I’ve been able to upload files up to 15 GB through the web UI without any problems.

The nextcloud-17 branch is now merged into master.

Big changes to this one lately–with the release of Caddy v2, lots has been rewritten. Major changes to the script, Caddyfile, and even the rc script, but it seems to be working well.

The changes last year continue to work well, and the script has now been updated to install Nextcloud 23.