Badges: fedbadges actually sends messages

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-03-28 23:12:04 +01:00
parent c84b99223c
commit e613cb8510
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 11 additions and 3 deletions

View file

@ -50,13 +50,13 @@
username: "fedbadges{{ env_suffix }}"
queue_name: "fedbadges{{ env_suffix }}"
routing_keys:
# The FMN queue is subscribed to everything
# The badges queue is subscribed to everything
- "#"
thresholds:
warning: 20000
critical: 25000
# Fedbadges does not send messages
sent_topics: "^$"
# It sends a message when a badge is awarded
sent_topics: ^org\.fedoraproject\.{{ env_short }}\.badges\..*
tags:
- config
- fedora-messaging

View file

@ -6,6 +6,14 @@ amqp_url = "amqps://fedbadges{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedorapr
callback = "fedbadges.consumer:FedoraBadgesConsumer"
passive_declares = true
# The topic_prefix configuration value will add a prefix to the topics of every sent message.
# This is used for migrating from fedmsg, and should not be used afterwards.
{% if env == "staging" %}
topic_prefix = "org.fedoraproject.stg.badges"
{% else %}
topic_prefix = "org.fedoraproject.prod.badges"
{% endif %}
[tls]
ca_cert = "/etc/pki/fedora-messaging/ca/cacert.pem"
certfile = "/etc/pki/fedora-messaging/crt/fedbadges-cert.pem"