1
0

pagure.py 531 B

1234567891011121314151617181920
  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(
  11. endpoints={
  12. "pagure.%s" % hostname: [
  13. "tcp://127.0.0.1:3005",
  14. ],
  15. },
  16. )