-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
59 lines (55 loc) · 2.17 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Example configuration in YAML
#
databases:
# Local test database
test:
enabled: true
host: localhost
port: 5432
database: postgres
user: postgres
password: postgres
ssl: false
# Notify listeners
# These are used by the notify-rabbit.js application which connects
# to each database and adds a notify listener so that postgresql code
# can issue NOTIFY('key','message') and that message is sent to
# a rabbitmq instance
notify:
-
# Is this notifier enabled, disabled if absent/ !true
enabled: true
# Database to connect to (required)
database: test
# The notification name to listen to (required)
name: reportengine
# Log the message and meta data to the console (optional)
debug: true
# Convert the payload into json (optional) defaults to false
json: true
# Handlers to use. This is a map of handlers and any config they
# require. The config format is specific to each handler. Also
# An app doesn't have to support a handler, just define them
# when calling the notify() method
handlers:
# Example handler, logs the payload to the console (optional)
#console: true
# Rabbit instance to use
rabbit:
instance: testRabbit
# Topic to use, defaults to amq.topic (required if rabbit set)
#topic: amq.topic
# key: use just a routing key and send entire message to that key
key: job.status
# Valid only if json:true if set then the key in the message
# containing the routing key
#routingKey: key
# Valid only when routingKey is valid, the key of the message
# containing the actual message. If missing then the original
# message is sent instead
#payload: body
# RabbitMQ configuration
rabbit:
# Test rabbit instance with user guest, password guest on localhost.
# You can put an IP address here, for IPv6 enclose the address with []
testRabbit: amqp://guest:guest@localhost