# Пользователи, права, exchange и очереди импортируются при каждом старте (идемпотентно, по хешу файла). load_definitions = /run/secrets/rabbitmq_definitions.json # The broker accepts only mutually authenticated TLS connections; plaintext AMQP is disabled. listeners.tcp = none listeners.ssl.default = 5671 ssl_options.cacertfile = /run/secrets/ca.crt ssl_options.certfile = /run/secrets/broker.crt ssl_options.keyfile = /run/secrets/broker.key ssl_options.verify = verify_peer ssl_options.fail_if_no_peer_cert = true # EXTERNAL maps the verified client certificate CN to the RabbitMQ username. # PLAIN is disabled so a password cannot bypass certificate identity. auth_mechanisms.1 = EXTERNAL ssl_cert_login_from = common_name # Пороги flow control ниже лимита контейнера 512M: при нехватке памяти/диска брокер тормозит издателей, а не падает. vm_memory_high_watermark.absolute = 256MiB disk_free_limit.absolute = 200MB