98 lines
2.5 KiB
TOML
98 lines
2.5 KiB
TOML
# A sample configuration for fedora-messaging. This file is in the TOML format.
|
|
amqp_url = "amqp://"
|
|
callback = "fedora_cloud_image_uploader:consumer"
|
|
passive_declares = false
|
|
publish_exchange = "amq.topic"
|
|
topic_prefix = ""
|
|
|
|
[tls]
|
|
ca_cert = "/etc/fedora-messaging/cacert.pem"
|
|
keyfile = "/etc/fedora-messaging/fedora-key.pem"
|
|
certfile = "/etc/fedora-messaging/fedora-cert.pem"
|
|
|
|
[client_properties]
|
|
app = "Fedora Cloud Image Uploader"
|
|
app_url = "https://pagure.io/cloud-image-uploader"
|
|
app_contacts_email = "cloud@lists.fedoraproject.org"
|
|
|
|
# If the exchange or queue name has a "." in it, use quotes as seen here.
|
|
[exchanges."amq.topic"]
|
|
type = "topic"
|
|
durable = true
|
|
auto_delete = false
|
|
arguments = {}
|
|
|
|
[queues.my_queue]
|
|
durable = true
|
|
auto_delete = false
|
|
exclusive = false
|
|
arguments = {}
|
|
|
|
# Note the double brackets below. To add another binding, add another
|
|
# [[bindings]] section. To use multiple routing keys, just expand the list here.
|
|
[[bindings]]
|
|
queue = "my_queue"
|
|
exchange = "amq.topic"
|
|
routing_keys = ["org.fedoraproject.prod.buildsys.build.state.change"]
|
|
|
|
[consumer_config.azure]
|
|
location = "eastus2"
|
|
resource_group_name = "fedora-rg"
|
|
gallery_name = "Fedora"
|
|
gallery_description = "The Fedora compute gallery."
|
|
storage_account_name = "fedoraimageuploads"
|
|
storage_container_name = "vhds"
|
|
|
|
[[consumer_config.azure.target_regions]]
|
|
name = "eastus2"
|
|
regional_replica_count = 2
|
|
storage_account_type = "Standard_LRS"
|
|
|
|
[[consumer_config.azure.target_regions]]
|
|
name = "centralus"
|
|
regional_replica_count = 2
|
|
storage_account_type = "Standard_LRS"
|
|
|
|
[qos]
|
|
prefetch_size = 0
|
|
prefetch_count = 25
|
|
|
|
[log_config]
|
|
version = 1
|
|
disable_existing_loggers = true
|
|
|
|
[log_config.formatters.simple]
|
|
format = "[%(levelname)s %(name)s] %(message)s"
|
|
|
|
[log_config.handlers.console]
|
|
class = "logging.StreamHandler"
|
|
formatter = "simple"
|
|
stream = "ext://sys.stdout"
|
|
|
|
[log_config.loggers.fedora_cloud_image_uploader]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
[log_config.loggers.fedora_messaging]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
# Twisted is the asynchronous framework that manages the TCP/TLS connection, as well
|
|
# as the consumer event loop. When debugging you may want to lower this log level.
|
|
[log_config.loggers.twisted]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
# Pika is the underlying AMQP client library. When debugging you may want to
|
|
# lower this log level.
|
|
[log_config.loggers.pika]
|
|
level = "WARNING"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
[log_config.root]
|
|
level = "ERROR"
|
|
handlers = ["console"]
|