summaryrefslogtreecommitdiffstats
path: root/roles/fedmsg/base/files/relay-debug-loopback.py
blob: 938cc8985db9b36ac246a5f01226e13b5c51569e (plain)
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
## WARNING ##
# This file is a replacement for the *regular* relay.py file we ship to all
# fedora infra prod/stg hosts.
# If you are seeing this file on a host, that is because it has
# fedmsg_debug_loopback set to 'true' in our ansible config.  That should be an
# exceptional thing used only for debugging.
#
# Things to know:
#
# * No 'fedmsg-logger' statements on this host will make it to the real bus
# * They will only be broadcast locally (on this box)
# * No messages from the main fedmsg-relay on our bus will make it to this box.
# * Other messages from persistent fedmsg services will make it here.
#
# You can use this to test services locally with 'fedmsg-dg-replay'.  Messages
# rebroadcast by that command will be replayed locally, to only this host.

config = dict(
    endpoints={
        "relay_outbound": [
            "tcp://127.0.0.1:3999",
        ],
    },
    relay_inbound=[
        "tcp://127.0.0.1:9941",
    ],
)