This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
packages:fedmsg [2016-03-19 14:51] glen gateway |
packages:fedmsg [2016-03-19 16:56] (current) glen [outgoing requests] |
||
---|---|---|---|
Line 9: | Line 9: | ||
- install yourself ''fedmsg-relay'' package | - install yourself ''fedmsg-relay'' package | ||
- add to endpoint: <code python /etc/fedmsg.d/endpoints.py> | - add to endpoint: <code python /etc/fedmsg.d/endpoints.py> | ||
+ | endpoints={ | ||
"__main__.HOSTNAME": [ | "__main__.HOSTNAME": [ | ||
"tcp://127.0.0.1:4320", | "tcp://127.0.0.1:4320", | ||
Line 26: | Line 27: | ||
Now you can define in your ''endpoints.py'' to listen for pld messages: | Now you can define in your ''endpoints.py'' to listen for pld messages: | ||
<code python endpoints.py> | <code python endpoints.py> | ||
+ | endpoints={ | ||
"pld-relay": [ | "pld-relay": [ | ||
"tcp://ep09.pld-linux.org:9940", | "tcp://ep09.pld-linux.org:9940", | ||
Line 32: | Line 34: | ||
+ | ===== Incoming requests ===== | ||
+ | |||
+ | To configure accepting incoming messages on ''tcp/2003'', install ''fedmsg-relay'' package and configure ''relay.py'': | ||
+ | |||
+ | <code python relay.py> | ||
+ | relay_inbound=[ | ||
+ | "tcp://ep09.pld-linux.org:2003", | ||
+ | ], | ||
+ | </code> | ||
+ | |||
+ | ===== Outgoing requests ===== | ||
+ | |||
+ | To configure sending local ''fedmsg-logger'' events to central hub, install ''fedmsg-relay'' package and configure ''relay.py'': | ||
+ | |||
+ | <code python relay.py> | ||
+ | relay_inbound=[ | ||
+ | "tcp://ep09.pld-linux.org:2003", | ||
+ | ], | ||
+ | </code> | ||
+ | |||
+ | No need to start relay daemon. | ||
===== anitya ===== | ===== anitya ===== | ||