danb35
Hall of Famer
- Joined
- Aug 16, 2011
- Messages
- 15,504
It seems like there are lot of guides here on installing Nextcloud, and a number of people reporting problems with many of them. So, I figured, why not write another one? The difference between this method and the others is that this method employs a script to create the jail, install all the relevant packages, and configure them. My thought/hope is that by scripting the installation and setup, a lot of the PEBCAK-type errors that come up in such a complex installation can be avoided.
This script will optionally obtain, install, and renew a certificate from Let's Encrypt. For this to happen, one of two things must be true:
This script installs and configures Nextcloud and all its dependencies.
Script and more details here: https://github.com/danb35/freenas-iocage-nextcloud
This script will optionally obtain, install, and renew a certificate from Let's Encrypt. For this to happen, one of two things must be true:
- You have a fully-qualified domain name ("$FQDN") that points to your jail, and the jail is reachable from the public Internet with ports 80 and 443 open to the jail--that is, if an Internet user browses to http://$FQDN, they'll reach your jail. -or-
- Your DNS host has an API that's supported by Caddy, allowing automated updates to your DNS records. Cloudflare has such an API, and provides DNS hosting for free. Other DNS hosts can be used, but will likely require manual configuration.
This script installs and configures Nextcloud and all its dependencies.
Script and more details here: https://github.com/danb35/freenas-iocage-nextcloud
Last edited: