How to set rabbitmq_management only listen on port 15671? #7363
-
I config Rabbitmq according to https://www.rabbitmq.com/management.html#single-listener-https like this
But the management plugin still listens on 0.0.0.0:15672 and 172.31.x.x:15671, how to set rabbitmq_management only to listen on port 15671? Rabbitmq version: 3.8.35 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @HScarb, I've had a similar issue and I've managed to solve it by applying an extraconfiguration parameters, as follows:
My issue ticket is this: Hope this can help :) |
Beta Was this translation helpful? Give feedback.
-
I will copy a response in #12544 here because apparently someone still lands on this discussion in late 2024. As for a way to disable the regular TCP listener, it is as trivial as not configuring it at all. Given the following #
# Management
#
management.http_log_dir = /tmp/rabbitmq-http-api/logs/
management.ssl.port = 15671
management.ssl.cacertfile = /path/to/tls-gen.git/basic/result/ca_certificate.pem
management.ssl.certfile = /path/to/tls-gen.git/basic/result/server_certificate.pem
management.ssl.keyfile = /path/to/tls-gen.git/basic/result/server_key.pem You will get the following listeners enabled:
In other words, there will be just one listener enabled. This is exactly what the HTTPS section of the docs claims, with joint HTTP/HTTPS setup being documented separately for this reason. |
Beta Was this translation helpful? Give feedback.
I will copy a response in #12544 here because apparently someone still lands on this discussion in late 2024.
As for a way to disable the regular TCP listener, it is as trivial as not configuring it at all.
Given the following
rabbitmq.conf
:You will get the following listeners enabled: