.. | ||
defaults | ||
tasks | ||
templates | ||
README.md |
Nextcloud
Students and teachers can store their documents, calendars, contacts and photos locally within Nextcloud, which is much like having a (local) version of Dropbox or Google Drive on your very own Internet-in-a-Box.
This Ansible playbook was derived from an earlier ownCloud playbook thanks to Josh Dennis in 2016/2017.
Install It
(1) Set these 2 variable in /etc/iiab/local_vars.yml prior to installing Internet-in-a-Box:
nextcloud_install: True
nextcloud_enabled: True
(2) If you want to access Nextcloud from public IPv4 addresses, then also set:
nextcloud_allow_public_ips: True
To further refine Nextcloud access controls based on IPv4 addresses, you can edit /etc/apache2/sites-available/nextcloud.conf
after it's created by template /opt/iiab/iiab/roles/nextcloud/templates/nextcloud.conf.j2
(3) Strongly consider setting apache_high_php_limits: True
in the 3-BASE-SERVER section, to allocate important RAM/resources to PHP. Of course, enabling this might cause excess use of RAM/disk or other resources if not calibrated to your hardware! So after install is complete, verify and evaluate these 5 settings in /etc/php/[ACTUAL PHP VERSION]/apache2/php.ini:
- upload_max_filesize
- post_max_size
- memory_limit (Nextcloud recommends 512+ MB)
- max_execution_time
- max_input_time
Useful PHP recommendations for these settings (while largely tailored to WordPress!) can be found in /opt/iiab/iiab/roles/httpd/tasks/main.yml
Using It
Log in to Nextcloud at http://box/nextcloud, http://box.lan/nextcloud, http://172.18.96.1/nextcloud (or similar) using:
Username: Admin
Password: changeme
Future Directions
Going forward, should Internet-in-a-Box consider integrating optimizations (or more!) from these below?
- https://ownyourbits.com/nextcloudpi/
- https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
- https://github.com/nextcloud/nextcloudpi
Please contact us if you can help!