# moksha configuration without fedmsg

[app:main]

# Some configuration for our workers
bugzilla.products = Fedora, Fedora EPEL

# If you have 8 worker threads you *also* need 8 fedmsg endpoints in fedmsg.d/
# and 8 open holes in the firewall
bugzilla.num_workers = 1
moksha.workers_per_consumer = 2
moksha.threadpool_size = 5

# These are credentials used to log in to bugzilla
{% if env == 'staging' %}
bugzilla.url = https://partner-bugzilla.redhat.com
{% else %}
bugzilla.url = https://bugzilla.redhat.com
{% endif %}
bugzilla.username = {{ bugzilla_user }}
bugzilla.password = {{ bugzilla_password }}

# Stomp broker configuration.
{% if env == 'staging' %}
stomp_uri = messaging-devops-broker01.dist.stage.ext.phx2.redhat.com:61612,messaging-devops-broker02.dist.stage.ext.phx2.redhat.com:61612

stomp_ssl_crt = /etc/pki/fedmsg/msg-client-fedora-prod.crt
stomp_ssl_key = /etc/pki/fedmsg/msg-client-fedora-prod.key

stomp_user = {{ redhat_dmz_dev_broker_username }}
stomp_pass = {{ redhat_dmz_dev_broker_password }}
{% else %}
stomp_uri = messaging-devops-broker01.dist.prod.ext.phx2.redhat.com:61612,messaging-devops-broker02.dist.prod.ext.phx2.redhat.com:61612

stomp_ssl_crt = /etc/pki/fedmsg/msg-client-fedora-prod.crt
stomp_ssl_key = /etc/pki/fedmsg/msg-client-fedora-prod.key

stomp_user = {{ redhat_dmz_prod_broker_username }}
stomp_pass = {{ redhat_dmz_prod_broker_password }}
{% endif %}

# Override the topic set in the bugzilla2fedmsg app and subscribe to a queue declared here.
stomp_queue = /queue/Consumer.fedora.DO-NOT-COPY.VirtualTopic.eng.bugzilla.>

stomp_heartbeat = 1000

moksha.monitoring.socket = ipc:///var/run/fedmsg/monitoring-moksha-hub.socket
moksha.monitoring.socket.mode = 770
