Nginx proxies query to push service of selected type. Message getting queries (for example, sub) are public and proxied from standard ports 80/443. Publication queries (pub) are available only from internal server address.
Nodejs processes are split into two types:
Processes responsible for connecting user to selected channel and message reception. Listen to ports: 8010-8015;
Processes responsible for sending message to channel. Listen to ports: 9010-9011.
To start Push-server we need:
nodejs & npm ;
service and its modules archive.
For installation we require Python or a make utility:
zypper install python3 make wget -y
Execute the following actions:
Download and install archive push-server-0.2.2.tgz:
npm install --production ./push-server-0.2.2.tgz
Go to push module config (site settings) and enable local push server (latest version).
Additionally, indicate SECURITY_KEY parameter, configured previously above in the file /etc/sysconfig/push-server-multi.