Additional Websites


So you already have one of our products, or maybe another product from somebody else running on your NGINX proxied server? That's okay! All you really have to do is follow these 3 easy steps!

Insert the below into your /etc/nginx/sites-available/default file. Ensure to edit the relevant points. Paste this at the bottom of the file.

server {
    
  server_name example.com; # Change domain to yours.
    
  location / {
    proxy_pass http://localhost:3000; # Change the port if changed in the config file.
    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;
  }    
}

Save changes to the file and verify that it has been updated on the server side.

Now initiate the changes by restarting NGINX with the below command.

sudo systemctl restart nginx

Now create a SSL certificate through Certbot. Make sure to replace example.com with your domain instead.

sudo certbot --nginx -d example.com

Then simply start your website like intended, this usually requires running npm i followed by node .