How To Install Next Cloud
How To Install Next Cloud
I will explain the process of building our own cloud using Nextcloud on TrueNAS.
installing Nextcloud on TrueNAS is the solution we will explore, for overcome hard drive failure and data
loss
Chapter 1: Infrastructure Setup
This step is crucial to avoid any errors during the installation of Nextcloud.
In my example, I chose "Pool1" as the storage location and named it "Vol1" for easy reference.
we encounter an error Access though untrusted domain at this stage, we will address it next.
Nextcloud generates a random password during installation, but I recommend changing it to a more
secure and memorable password to protect data.
Chapter 3: Enabling Remote Access
Currently, Nextcloud can only be accessed within our local network. To make it accessible from
anywhere on the internet, we need to set up a domain name and configure port forwarding.
In my example, I created the domain name "psauproject.duckdns.org". Make a note of this domain for
the upcoming steps.
Most routers support port forwarding. Start by forwarding port 80 to the IP address 192.168.1.34, and
then do the same for port 443.
Accessing Nextcloud from Anywhere on the Internet
After obtaining the domain name and configuring port forwarding, we can now access your Nextcloud
from anywhere on the internet.
We have successfully setting up the private cloud with TrueNAS and Nextcloud.
I've successfully setting up a private cloud with TrueNAS. Now, let's take the next steps to enhance the
security of your cloud.
To verify if the changes have taken effect, we refresh the web browser or open a new tab. If it's still not
working, try using a different web browser. For example, Google Chrome often works well. You can also
test it with Microsoft Edge.
Once you're inside the jail, we need to open the Nextcloud.config file located at
/usr/local/etc/nginx/config.d/nextcloud.config.
Now, let's address the issue. The problem lies in having duplicated "listen" and "server_name"
directives, which creates an infinite loop resulting in the "too many redirections" error
To fix this, we can either remove the entire duplicated lines or simply comment them out by adding a
"#" in front of each line. Additionally, we will need to combine the two server settings into one by
deleting the duplicate "server" block.
Once we have made the necessary changes, we saved the file and exit the editor.
Now, we need to restart the Nginx server to apply the changes. Run the command service nginx restart
in the shell or terminal.
However, the certificates are valid for only 90 days, so it's important to schedule their auto-renewal.
Create a new cron job to handle the certificate renewal, with options for automatic renewal every hour,
day, week, or month.
We have successfully built your Nextcloud cloud. Now you can connect to Nextcloud from your
computer or smartphone. In this case, you tested it on a Windows computer.