From 276696e085ab77340fcb97413c80f949c5c796a9 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 27 Feb 2019 13:03:29 +0100 Subject: [PATCH] Add MQTT listener --- ecs/Dockerfile | 2 +- ecs/conf/ejabberd.yml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ecs/Dockerfile b/ecs/Dockerfile index 32e06f3..cef4bae 100644 --- a/ecs/Dockerfile +++ b/ecs/Dockerfile @@ -74,7 +74,7 @@ ADD --chown=ejabberd:ejabberd https://download.process-one.net/cacert.pem conf/c # Setup runtime environment USER ejabberd VOLUME ["$HOME/database","$HOME/conf","$HOME/logs"] -EXPOSE 5222 5269 5280 5443 4369-4399 +EXPOSE 1883 4369-4399 5222 5269 5280 5443 ENTRYPOINT ["/home/ejabberd/bin/ejabberdctl"] CMD ["foreground"] diff --git a/ecs/conf/ejabberd.yml b/ecs/conf/ejabberd.yml index 5166ad2..53cecfa 100644 --- a/ecs/conf/ejabberd.yml +++ b/ecs/conf/ejabberd.yml @@ -60,7 +60,6 @@ define_macro: c2s_ciphers: CIPHERS_INTERMEDIATE c2s_protocol_options: PROTOCOL_OPTIONS_INTERMEDIATE - listen: - port: 5222 @@ -95,6 +94,11 @@ listen: ip: "::" module: ejabberd_http web_admin: true + - + port: 1883 + ip: "::" + module: mod_mqtt + backlog: 1000 s2s_use_starttls: optional @@ -199,6 +203,7 @@ modules: ## db_type: sql ## assume_mam_usage: true ## default: always + mod_mqtt: {} mod_muc: access: - allow