Skip to content

ausybenelux/lissa_worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Worker script for parsing and forwarding LISSA notifications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages