Files
mtusi2026lab7/infra/rabbitmq/rabbitmq.conf
T
HellsTomatoandCopilot 2ef0299e34
Skeleton contracts / contracts (pull_request) Canceled after 0s
Complete lab7 grade 4 implementation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-06 15:35:53 +03:00

18 lines
1.1 KiB
Plaintext

# Пользователи, права, 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