Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.19 KB

LISSA Worker

The LISSA Worker script listens to the RabbitMQ server for notifications. It will parse and forward the incoming notifications to the Nginx push stream server's publish endpoint.

Requirements

  • Composer
  • A process manager like supervisord
  • PHP 5.4 or higher

Installation

Run the following command to set up the dependencies:

composer install

Configuration

You can either edit the settings.php file or create your own local.settings.php file that overrides the default settings.

$conf = array(
  // The AMQP server to read the LISSA notifications from.
  'amqp' => array(
    'host' => 'localhost',
    'port' => 5672,
    'user' => 'guest',
    'password' => 'guest',
  ),
  // An Nginx push stream server to forward notifications to.
  'publisher' => array(
    'host' => 'localhost',
    'endpoint' => 'publish',
    'port' => '8080',
  ),
);

Usage

The worker script should listen continuously for new messages. It is recommended you run the script using a process manager like supervisord.

The LISSA infrastructure repo contains a chef recipe that can provision a server with LISSA worker and supervisord.