ConvoqDocumentation Version 1.0.0

Run the platform · Install

Install on a VPS

For your own Ubuntu server, with nginx in front and a free HTTPS certificate.

These steps are for Ubuntu 22.04 or 24.04. A server with 1 GB of memory is enough to start. You type the commands into a terminal that is connected to the server.

#1. Install the programs

# Node.js 22, MariaDB, nginx
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs mariadb-server nginx unzip
sudo npm install -g pm2

#2. Create the database

Choose your own password in place of choose-a-strong-password and write it down.

sudo mariadb -e "CREATE DATABASE convoq CHARACTER SET utf8mb4;
  CREATE USER 'convoq'@'localhost' IDENTIFIED BY 'choose-a-strong-password';
  GRANT ALL PRIVILEGES ON convoq.* TO 'convoq'@'localhost';"

#3. Start the application

Upload the zip file to the server first, then:

sudo mkdir -p /var/www/convoq && sudo chown $USER /var/www/convoq
unzip convoq-v1.0.0.zip -d /var/www && cd /var/www/convoq
npm install --omit=dev
pm2 start server.js --name convoq
pm2 save && pm2 startup

pm2 keeps the application running and starts it again after a reboot.

#4. Put nginx in front

Replace chat.example.com with your domain and save this as /etc/nginx/sites-available/convoq:

server {
  listen 80;
  server_name chat.example.com;
  client_max_body_size 30m;

  location / {
    proxy_pass http://127.0.0.1:4000;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_read_timeout 120s;
    proxy_buffering off;
  }
}

#5. Turn on HTTPS

sudo ln -s /etc/nginx/sites-available/convoq /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo apt install -y certbot python3-certbot-nginx
sudo certbot --nginx -d chat.example.com

Open https://chat.example.com. The setup wizard starts. In its database step use host localhost, port 3306, database convoq, user convoq and the password from step 2.

Convoq documentation, version 1.0.0. Screens show demo data.