From 7e61d94c53fd4197a4c058067d5c7c4bcffe8214 Mon Sep 17 00:00:00 2001 From: ioolkos Date: Sat, 4 May 2024 20:25:34 +0200 Subject: [PATCH] Fix (revert to) default listeners (#387) --- bin/vernemq.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bin/vernemq.sh b/bin/vernemq.sh index d11441b..ecc40fc 100755 --- a/bin/vernemq.sh +++ b/bin/vernemq.sh @@ -261,6 +261,23 @@ EOF echo "erlang.distribution.port_range.maximum = 9109" >> ${VERNEMQ_CONF_FILE} fi + if [ -z "$DOCKER_VERNEMQ_LISTENER__TCP__DEFAULT" ]; then + configure_vernemq_listeners + echo "listener.tcp.default = ${IP_ADDRESS}:1883" >> ${VERNEMQ_CONF_FILE} + fi + + if [ -z "$DOCKER_VERNEMQ_LISTENER__WS__DEFAULT" ]; then + echo "listener.ws.default = ${IP_ADDRESS}:8080" >> ${VERNEMQ_CONF_FILE} + fi + + if [ -z "$DOCKER_VERNEMQ_LISTENER__VMQ__CLUSTERING" ]; then + echo "listener.vmq.clustering = ${IP_ADDRESS}:44053" >> ${VERNEMQ_CONF_FILE} + fi + + if [ -z "$DOCKER_VERNEMQ_LISTENER__HTTP__METRICS" ]; then + echo "listener.http.metrics = ${IP_ADDRESS}:8888" >> ${VERNEMQ_CONF_FILE} + fi + configure_vernemq_listeners echo "########## End ##########" >> ${VERNEMQ_CONF_FILE}