# RabbitMQ 4.3 of the stand (compose service `broker`), mounted as conf.d/20-lab.conf. # Lab 7: AMQP 0-9-1 over TLS ONLY (amqps, 5671) inside the internal network `queue`. The plaintext # listener is off, there is no management UI and no Prometheus listener (enabled_plugins is # empty), nothing is published on the host. Clients verify the server certificate (internal CA, # SAN broker); their identity is the user relay / worker with its own permissions (grade 3: no # client certificates; mTLS to the broker is grade 4). listeners.tcp = none listeners.ssl.default = 5671 ssl_options.cacertfile = /run/secrets/internal-ca.crt ssl_options.certfile = /run/secrets/broker.crt ssl_options.keyfile = /run/secrets/broker.key ssl_options.verify = verify_none ssl_options.fail_if_no_peer_cert = false ssl_options.versions.1 = tlsv1.3 ssl_options.versions.2 = tlsv1.2 # Users, permissions and topology are imported from files at every boot (idempotent): # /etc/rabbitmq/definitions.d/topology.json exchanges, quorum queues, bindings (this repo) # /etc/rabbitmq/definitions.d/users.json users relay/worker + permissions (Docker secret, # generated by scripts/init_secrets.py) # With imported definitions no default `guest` user is created. definitions.import_backend = local_filesystem definitions.local.path = /etc/rabbitmq/definitions.d definitions.skip_if_unchanged = false # A delivery that stays unacked longer than this closes the consumer's channel and the message # is returned to the queue (a worker that hangs while connected). Far above JOB_TIMEOUT_SECONDS. consumer_timeout = 300000 # The container has a 512 MiB limit; flow control starts well before the cgroup OOM. vm_memory_high_watermark.relative = 0.5 disk_free_limit.absolute = 200MB log.console = true log.console.level = info