0.1.0 • Published 10 years ago
defcon-redis-gateway v0.1.0
DEFCON Redis Gateway Plugin
Receives or forwards events via Redis pubsub
Prerequisits
Installation
- '''cd $DEFCON_INSTALL_DIR'''
- '''npm install defcon-redis-gateway'''
- '''Enable and configure 'defcon-redis-gateway' in your DEFCON configuration file, e.g.
'''json
{
"plugins": {
"installed":
"defcon-redis-gateway"
,
"defcon-redis-gateway": {
"subscribers": [
{
"host": "localhost",
"port": 6379,
"db": 0,
"patterns": "defcon/www//error", "defcon/www//release",
"options": {
"enable_offline_queue": false
}
}
],
"publishers":
{
"host": "remotehost",
"port": 6379,
"db": 0,
"channel": "defcon",
"options": {
"enable_offline_queue": false
}
}
}
} } ''' - Be careful not to create an infinite loop with your publish and subscribe configuration
- Restart defcon (you can do this via '''kill -s USRSIG2 ''' if you want zero downtime)
0.1.0
10 years ago