Files
fedora-infra_ansible/roles/distgit/pagure/templates/fedora-messaging.toml
Aurélien Bompard b80627f26a Add the publish_exchange to DistGit's fedora messaging config
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2026-02-12 17:13:22 +01:00

43 lines
1.2 KiB
TOML

# A sample configuration for fedora-messaging. This file is in the TOML format.
# For complete details on all configuration options, see the documentation.
amqp_url = "amqps://pkgs{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub"
# 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"
{% else %}
topic_prefix = "org.fedoraproject.prod"
{% endif %}
publish_exchange = "amq.topic"
[tls]
ca_cert = "/etc/pki/rabbitmq/pagurecert/src.fp.o.ca"
keyfile = "/etc/pki/rabbitmq/pagurecert/src.fp.o.key"
certfile = "/etc/pki/rabbitmq/pagurecert/src.fp.o.crt"
[client_properties]
app = "src.fp.o"
[consumer_config]
excluded_paths = ["/requests/"]
with_namespace = true
url_template = "https://src{{ env_suffix }}.fedoraproject.org/{namespace}/{repo}/c/{rev}?branch={branch}"
[log_config.loggers.fedora_messaging]
level = "WARNING"
propagate = false
handlers = ["console"]
[log_config.loggers.twisted]
level = "WARNING"
propagate = false
handlers = ["console"]
[log_config.loggers.pika]
level = "WARNING"
propagate = false
handlers = ["console"]