This commit includes: 1. Adds fedora-messaging and happinesspacket-schema as a dependency in `base.py` 2. Sets env variable to fedora-messaging config file in `Dockerfile` 3. Adds `config.toml` [configuration file for fedora-messaging] to project's app directory 4. Instructions to build a container for RabbitMQ in `docker-compose.yml` 5. Adds `happinesspacket_schema_package` which houses the schema and tests. 6. Configured MessageSenderConfirmationView to post messages to the broker.
38 lines
721 B
TOML
38 lines
721 B
TOML
amqp_url = "amqp://user:pass@rabbitMq:5672/vhost"
|
|
|
|
publish_exchange = "amq.topic"
|
|
|
|
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 = "Fedora Happiness Packets"
|
|
|
|
[qos]
|
|
prefetch_size = 0
|
|
prefetch_count = 25
|
|
|
|
[log_config]
|
|
version = 1
|
|
disable_existing_loggers = true
|
|
|
|
[log_config.formatters.simple]
|
|
format = "[%(name)s %(levelname)s] %(message)s"
|
|
|
|
[log_config.handlers.console]
|
|
class = "logging.StreamHandler"
|
|
formatter = "simple"
|
|
stream = "ext://sys.stdout"
|
|
|
|
[log_config.loggers.fedora_messaging]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
[log_config.root]
|
|
level = "WARNING"
|
|
handlers = ["console"]
|