From d96683d9922f939e9428d399a343b92e8bbc1bce Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Mar 05 2019 12:24:45 +0000 Subject: [PATCH 1/2] Add a fedora-messaging configuration file example Signed-off-by: Clement Verna --- diff --git a/conf/fedora-messaging-example.toml b/conf/fedora-messaging-example.toml new file mode 100644 index 0000000..5396b25 --- /dev/null +++ b/conf/fedora-messaging-example.toml @@ -0,0 +1,18 @@ +# 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 = "amqp://" + +publish_exchange = "amq.topic" + +# 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. +topic_prefix = "" + +[tls] +ca_cert = "/etc/pki/tls/certs/ca-bundle.crt" +keyfile = "/my/client/key.pem" +certfile = "/my/client/cert.pem" + +[client_properties] +app = "ResultsDB" From f793f5545032b4e4fbd12bf63adba0cf9667d15a Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Mar 05 2019 12:25:39 +0000 Subject: [PATCH 2/2] We still uses the modname setting for fedora-messaging topic Signed-off-by: Clement Verna --- diff --git a/conf/settings.py.example b/conf/settings.py.example index 164ac45..f633a7d 100644 --- a/conf/settings.py.example +++ b/conf/settings.py.example @@ -58,6 +58,7 @@ MESSAGE_BUS_PUBLISH = False # default, but you could create your own. # Supported values: 'dummy', 'stomp', 'fedmsg' MESSAGE_BUS_PLUGIN = 'fedmsg' +MESSAGE_BUS_KWARGS = {'modname': 'resultsdb'} ## Alternatively, you could use the 'stomp' messaging plugin. #MESSAGE_BUS_PLUGIN = 'stomp'