Status: This script will run with TrueNAS CORE 13. It's possible, but untested, that it will work with FreeNAS 12. Earlier versions are not supported.
There are a number of guides on the forum to install Nextcloud, but they all rely on a lot of manual work. Where there's manual work to be done, there are ways to get it wrong. Therefore, this guide is designed to minimize manual work--all that's really needed is to download the script, set up a small configuration file, and run the script--it will do the rest of the work. And by "the rest of the work", I mean that it will create the jail, download Caddy 2.7.6 (as of this writing), PHP 8.2, MariaDB 10.6 (or PostgreSQL if desired), and the latest Nextcloud 28 release; configure all of them; obtain and install a trusted TLS certificate for the jail (if desired); and automatically renew the certificate.
The most up-to-date instructions will be at https://github.com/danb35/freenas-iocage-nextcloud
There are a number of guides on the forum to install Nextcloud, but they all rely on a lot of manual work. Where there's manual work to be done, there are ways to get it wrong. Therefore, this guide is designed to minimize manual work--all that's really needed is to download the script, set up a small configuration file, and run the script--it will do the rest of the work. And by "the rest of the work", I mean that it will create the jail, download Caddy 2.7.6 (as of this writing), PHP 8.2, MariaDB 10.6 (or PostgreSQL if desired), and the latest Nextcloud 28 release; configure all of them; obtain and install a trusted TLS certificate for the jail (if desired); and automatically renew the certificate.
The most up-to-date instructions will be at https://github.com/danb35/freenas-iocage-nextcloud