From 634f2fe05a26e1bfd93a1191f8ea2c1b09bacbd9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 24 2016 13:07:48 +0000 Subject: Add a fedmsg.d/mdapi.py file so it helps working in a venv --- diff --git a/fedmsg.d/mdapi.py b/fedmsg.d/mdapi.py new file mode 100644 index 0000000..59def05 --- /dev/null +++ b/fedmsg.d/mdapi.py @@ -0,0 +1,17 @@ +""" This is an example mdapi configuration for fedmsg. +By convention, it is normally installed as ``/etc/fedmsg.d/mdapi.py`` + +For Fedora Infrastructure this file is not needed as we use dynamic +fedmsg endpoints. +""" + +import socket +hostname = socket.gethostname().split('.')[0] + +config = dict( + endpoints={ + "mdapi.%s" % hostname: [ + "tcp://127.0.0.1:3005", + ], + }, +)