

Rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect Rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect Be sure to change the server IPs to the one for your server (mine is 192.168.0.7) and amend the certificate paths and names if they are different.Ĭlient_max_body_size 1000M # set max upload size Sudo nano /etc/nginx/sites-available/defaultĪnd paste in the next below. Sudo sh -c "echo '' > /etc/nginx/sites-available/default" Now remove contents of the nginx config file with the command below Sudo openssl req -new -x509 -days 730 -nodes -out /etc/nginx/cert.pem -keyout /etc/nginx/cert.keyĪnswer the prompts and then run the commands below to se the correct permissions.
#Freenas owncloud install#
Sudo apt-get install nginx openssl ssl-cert php5-cli php5-sqlite php5-gd php5-common php5-cgi sqlite3 php-pear php-apc curl libapr1 libtool curl libcurl4-openssl-dev php-xml-parser php5 php5-dev php5-curl php5-gd php5-fpm memcached php5-memcache varnish mysql-server php5-mysql
#Freenas owncloud password#
You will be asked for the root password for the installation of MySQL at some point. Sudo gunzip -stdout | dd bs=4M of=/dev/sdfįirst install all the required packages via the command below. Sudo dd bs=4M if=/dev/sdf | gzip > Īnd if you balls up the install later on you can restore with I then turn off the Pi, remove the MicroSD card and make a back with the following command where /dev/sdf is the mount location for the card on your PC. At this point I have run through my own RaspberryPi 3 setup guide and amended the IP tables to allow access over ports, 80, 4. In this scenario the server is headless and is accessed via SSH. This is part of my ongoing project to take control of my data and information from the technology giants. But once it is and I have an offsite backup in place I will replace Dropbox and Google drive with this solution. If this was the case and I forgot to upload something to the right folder I could exhaust the 16GG MicroSD card on the RaspberryPi very fast.Īs stated elsewhere in the guide my FreeNAS box is not in its "final form" yet. I don't want to have to rely on the "external" storage module that comes with OwnCloud as these all end up with seperate folders inside your view of OwnCloud. The storage must be totally transparent to the user (me). Their are guides on doing this with external USB drives but a FreeNAS server with ZFS and RAID struck me as a more sensible storage solution. The object is to have the RaspberryPi act as a web front end for the backend storage. The RaspberryPi 3 can be configured using my guide here.

I am aware this is rather backward as FreeNAS has an OwnCloud plug-in you can install but I wanted to see if it was possible. This guide is intended for the installation of OwnCloud on a RaspberryPi 3 with a FreeNAS server as the storage backend.
