Up

Instructions for installing the On-Premise version on the server

To install the On-Premise version of the ImbaChat plugin, follow these steps to install on your server. The instruction is intended for the Linux platform, so you need to have Linux terminal skills, as well as basic PHP skills.

1) You must have Nginx installed and configure proxying of incoming traffic to the internal port, below is an example configuration.


# Default server configuration

server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;

 index index.html index.htm index.nginx-debian.html;
server_name_;
location / {
try_files $uri $uri/ =404;
}
}

server {
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name imbachat.site; # managed by Certbot
location / {
proxy_pass http://localhost:8080;
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_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;
}

server {
  if ($host = imbachat.site) {
  return 301 https://$host$request_uri;
  } # managed by Certbot

  listen 80 ;
  listen [::]:80 ;
  server_name imbachat.site;
  return 404; # managed by Certbot

}

2) You need to install SSL certificate

3) Install Ansible by running apt install ansible

4) Download the archive with the installer to the server by running the command wget -O installer.zip

https://imbachat.com/v1/check-pay-docker/widget_id/user_id

widget id and user id are substituted automatically when creating a link in t Dashboard.

5) next you need to unpack the zip archive by running the command unzip installer.zip. The availability of unzip depends on the Linux distribution. If an error occurs, then you need to install unzip by running the command apt install unzip.

6) Go to the unpacked folder and run the command bash ./apply.sh production.

Ready. The ImbaChat plugin is installed on your server!

For additional installation questions, please contact us at support@imbachat.com.