From 8060a727b81fee0aa3c38b51eef09c8d2aae56c8 Mon Sep 17 00:00:00 2001 From: Ery Lee Date: Mon, 2 Mar 2015 14:22:50 +0800 Subject: [PATCH] listen mqtts --- README.md | 11 +++++++++-- rel/files/app.config | 5 ++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 562e6ec90..44bd15db0 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,18 @@ cd $INSTALL_DIR/emqtt {auth, {anonymous, []}}, %internal, anonymous {listen, [ {mqtt, 1883, [ - {max_conns, 1024}, + {max_clients, 1024}, {acceptor_pool, 4} ]}, + {mqtts, 8883, [ + {max_clients, 1024}, + {acceptor_pool, 4}, + %{cacertfile, "etc/ssl/cacert.pem"}, + {ssl, [{certfile, "etc/ssl.crt"}, + {keyfile, "etc/ssl.key"}]} + ]}, {http, 8083, [ - {max_conns, 512}, + {max_clients, 512}, {acceptor_pool, 1} ]} ]} diff --git a/rel/files/app.config b/rel/files/app.config index 5f672c6f4..5b69771d1 100644 --- a/rel/files/app.config +++ b/rel/files/app.config @@ -34,6 +34,9 @@ ]} ]} ]}, + {esockd, [ + {logger, {lager, info}} + ]}, {emqtt, [ %Authetication. Internal, Anonymous Default. {auth, {anonymous, []}}, @@ -51,7 +54,7 @@ {max_clients, 1024}, {acceptor_pool, 4} ]}, - {'mqtts', 8883, [ + {mqtts, 8883, [ {max_clients, 1024}, {acceptor_pool, 4}, %{cacertfile, "etc/ssl/cacert.pem"},