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