Install - In Production

1. Setup

FileAgo v1.0 Created on: October 18, 2018


This document applies for installing FileAgo in production. To setup FileAgo in test environment, refer the previous page.

Prerequisites

  1. Make sure that the hostname of the server resolves properly through DNS
  2. Purchase a valid SSL certificate for the host, or create one using Let’s Encrypt

Create a directory to store FileAgo data:

mkdir -p /opt/fileago/nginx
/opt/fileago is also the base directory used by FileAgo (and is pre-configured in .env file)

Copy the SSL key and certificate into the newly created directory. In case of Let’s Encrypt, the commands will be like:

cp /etc/letsencrypt/live/<HOSTNAME>/fullchain.pem /opt/fileago/nginx/cert.crt
cp /etc/letsencrypt/live/<HOSTNAME>/privkey.pem /opt/fileago/nginx/cert.key

Installation

cd /etc
git clone https://github.com/fileago/fileago.git
cd fileago

Edit settings.env file and set value of WEBHOSTNAME to the server hostname.

Start the install by executing:

docker-compose -f docker-compose-prod.yml up -d

Visit https://HOSTNAME to begin the configuration process. Use the following information (exactly as it is given below) to fill in the form:

Field Value
Neo4j Host db
Neo4j Port 7474
Neo4j Username neo4j
Neo4j Password mysecurepass

Once the initial setup is over, login as admin and create users and groups.

Logout from the admin account, and begin using FileAgo as one of the users you have created (use email address to login as normal users).

In order to proceed further, you will require a license key. Steps to purchase and activate a license key can be found in the next page.

Cleanup

CAUTION: only execute the below commands if you wish to remove FileAgo and all its data from your server.
cd /etc/fileago
docker-compose -f docker-compose-prod.yml stop
docker-compose -f docker-compose-prod.yml rm -f
cd /root
rm -rf /etc/fileago /opt/fileago