pagure.py 487 B

123456789101112131415
  1. """ This is an example pagure configuration for fedmsg.
  2. By convention, it is normally installed as ``/etc/fedmsg.d/pagure.py``
  3. For Fedora Infrastructure, our own version of this file is kept in
  4. ``ansible/roles/fedmsg/base/templates/``
  5. It needs to be globally available so remote consumers know how to find the
  6. pagure producer (wsgi process).
  7. """
  8. import socket
  9. hostname = socket.gethostname().split(".")[0]
  10. config = dict(endpoints={"pagure.%s" % hostname: ["tcp://127.0.0.1:3005"]})