Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lx-webhook

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lx-webhook

lx-webhook ======

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

lx-webhook

  • Purpose
  • Usage
  • Components

Purpose

This service is responsible for listening to events that happens in Lynx and sending them to InBroker or Tapi based on webhook definitions defined in MongoDb.

Usage

Only the TENANTS env variable is needed to run locally.

Environment VariableDescriptionDefault Value
DEBUGSpecifies which SLF logs should be activated.
TENANTSTenants that the service is active for. Value is comma separated, for example pof,stenaline,kn
RABBIT_HOSTNAMEDefault RabbitMQ hostnamelocalhost
RABBIT_PORTDefault RabbitMQ port5672
RABBIT_USERNAMERabbitMQ Usernameguest
RABBIT_PASSWORDRabbitMQ Passwordguest
RABBIT_CONCURRENT_MESSAGESThe max number of concurrent messages allowed.8
MONGO_HOSTNAMEDefault MongoDB adresslocalhost
MONGO_PORTDefault MongoDB port27017
NODE_TELEGRAF_URIURI to Telegrafudp://:8094
NODE_TELEGRAF_BUFFER_SIZEMax buffert size for Telegraf. How many measuring points to send at once.10

The following environment variables overwrites the default shared variable for a specific tenant. For example POF_RABBIT_HOSTNAME overwrites the RABBIT_HOSTNAME for the tenant POF.

Environment Variable
<tenant>_RABBIT_HOSTNAME
<tenant>_RABBIT_PORT
<tenant>_RABBIT_USERNAME
<tenant>_RABBIT_PASSWORD
<tenant>_MONGO_HOSTNAME
<tenant>_MONGO_PORT

Components

This service does not contain much logic. It connects parts that are already implemented. The idea is to listen to commits on LX3.WEBHOOKS.INTERNAL.<tenant> and handing them of to WebhookService to deal with filtering and publishing of events.

index.ts

This is were most of the work is done and everything is connected.

WebhookService

This module deals with filtering and prepearing webhooks, this is a dependency located in the Lynx3 repository.

FAQs

Package last updated on 18 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc