Giter Site home page Giter Site logo

bitrix-push-server's Introduction

Bitrix push server

Install before apache and bitrix

push-apache.conf can use as part of VirtualHost or globaly as this install

Main bitrix domain must use valid SSL certificate

Install standalone:

cd /tmp
wget https://raw.githubusercontent.com/faew/bitrix-push-server/master/install.sh
sh install.sh

Bitrix Module Settings -> Push and Pull

"Push server" is installed and active on the server:

Bitrix Virtual Appliance 7.1-7.2 (Bitrix Push server 1.0)

Server command publish URL:

Message sender path: https://example.com/bitrix/pub/

Signature code for server interaction: KEY from install

Command reading URL for modern browsers

Message listener path (HTTP): http://#DOMAIN#/bitrix/sub/

Message listener path (HTTPS): https://#DOMAIN#/bitrix/sub/

Command reading URL for Web Socket enabled browsers

Message listener path (HTTP): ws://#DOMAIN#/bitrix/subws/

Message listener path (HTTPS): wss://#DOMAIN#/bitrix/subws/

Docker Compose

Build from Dockerfile

docker build --rm --no-cache -t faew/bitrix-push-server .

MODE=pub/sub

SECURITY_KEY=Signature in bitrix configuration

version: '3'
services:
    push-pub01:
        image: faew/bitrix-push-server
        container_name: push-pub01
        environment:
            SECURITY_KEY: strongkey
            MODE: pub
        links:
            - redis
    push-sub01:
        image: faew/bitrix-push-server
        container_name: push-sub01
        environment:
            SECURITY_KEY: strongkey
            MODE: sub
        links:
            - redis
    redis:
        image: redis

You must use link to redis.

Link push-pub* and push-sub* for you application. Use it for balancer configuration.

   <Proxy "balancer://nodejs_subws">
    BalancerMember "ws://push-sub01:80"
    BalancerMember "ws://push-sub02:80"
   </Proxy>

Full standalone config in push-apache.conf

Init repo with public code

http://repos.1c-bitrix.ru/yum/el/7/x86_64/push-server-1.0.0-4.el7.centos.noarch.rpm

Make it work in CentOS 7 without BitrixVM

Full tested in CentOS 8

bitrix-push-server's People

Contributors

faew avatar hconfig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.