Skip to content

service-broker/service-broker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What Is This?

This is a NodeJS implementation of a Service Broker.

Starting the Service Broker

To start the broker: npm start. To configure the broker: vi .env.

Environment Var Type Default Value Description
LISTENING_PORT Number (Required) HTTP/WebSocket listening port
LISTENING_HOST String Bind address
SSL_PORT Number SSL listening port
SSL_HOST String SSL bind address
SSL_CERT String SSL certificate file
SSL_KEY String SSL private key file
ALLOWED_ORIGINS RegExp '*' Allowed CORS origins
TRUST_PROXY Express 'trust proxy' configuration parameter
PROVIDER_AUTH_TOKEN String Require providers to include matching authToken in advertise requests
PROVIDER_PING_INTERVAL Number 15 seconds How often to send pings (providers)
NON_PROVIDER_PING_INTERVAL Number 5 minutes How often to send pings (non-providers)
PONG_TIMEOUT Number 30 seconds Duration to wait for pong before a connection is considered dead
RATE_LIMIT Count/Interval Message rate limit (non-providers)

About

NodeJS service broker reference implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors