User information
 Loading ...
Show article in Knowledge Base

 Migrate chat to websockets Export knowledge base Export     SubscribeSubscribe      Show article info

I you are running the chat/push component and are upgrading to a VisionFlow version equal to or newer than 15.6.1 you need to do some simple configuration changes for Tigase and Nginx. Follow the instructions below.


VisionFlow version >= 15.6.1.

You need to have nginx version 1.3.13 or later to be able to configure websockets proxying.


Tigase configuration

Open tigase_home/etc/ file and add the following lines:



Nginx configuration

  • Add the following lines to the file nodes_normal.conf and change ip address and port to the values that you tigase uses if necessary (5290 is tigase port for unsecured websockets, 5291 is port for secured web sockets)

upstream websockets{



  • Add the following lines to the file locations_443.conf for https or locations_80.conf for http

location /ws/ {

    proxy_read_timeout 120s;
    proxy_pass http://websockets;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
  • Add the following lines into the file nginx_root/conf/nginx.conf
    map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
  • Note:  in case of changing timeouts for tigase or nginx make sure the rules are followed
    nginx.proxy_read_timeout < tigase.max-inactivity-time




Now restart tigase and nginx.




For more info see the links:

User comments
 Loading ...