FAXES Documentation > FaxStore V2 > Step Two - Installing Files & Database

Step Two - Installing Files & Database

FAXES

Welcome to the file and database installation section! If you haven't already view Step One - Server Setup.


As FaxStore uses Node.Js we want to use a proxy to direct users to the application through a manipulation method.

If you don't have a SFTP viewer take a look at WinSCP

Nginx Configuration

Using a SFTP viewer navigate to /etc/nginx/sites-available/default. This is the Nginx site configuration. Delete the contents of the default file if you haven't made changes to it before.

Replace the contents with the below and change the port and domain as instructed.

server {
    
  server_name example.com; # Change domain to your domain
    
  location / {
    proxy_pass http://localhost:3000; # Change the port if needed.
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_set_header X-Real-IP $remote_addr;
  }    
    error_page 502 /502.html;
    location = /502.html {
        root  /home/faxstore/public;
    }
}

Once you have made your changes save the file and restart Nginx.

sudo systemctl restart nginx

Issue SSL Certificate

To issue our SSL certificate we want to run the below command and replace the domain name to ours.

sudo certbot --nginx -d example.com

You may be asked for some details like an email (this doesn't get used publicly).

When directed for a redirect method select the 2 option.

Now our certificate is issued we want to make sure it renews itself. Run the renew command to do so.

sudo certbot renew --dry-run

Installing FaxStore Files

This might be the easiest step in the whole guide.

Using a SFTP application like WinSCP copy and paste the contents of our download to the /home directory.

We want to end location to be /home/faxstore so create a new directory if needed.

winscpview

Installing The Database

Now, back to the harder stuff, it's time to install the MySQL database for FaxStore.

Login to our MySQL server using the mysql -u root -p command and enter your password.

Next all we need to do once logged in is run the below command.

source /home/faxstore/installme.sql

Discord Application

As FaxStore uses Discord as a login method along with popular logging and other enhanced features we will want to create a Discord Application in the Discord Developer Portal

Create an application and add a bot profile.

discordappcreate

In the Bot tab enable both gateway intents.


Was this article helpful?

33 out of 66 found this helpful