Skip to content

Commit

Permalink
Merge pull request #757 from emqtt/emq20
Browse files Browse the repository at this point in the history
Fix issue #754 and open 8884 port(wss) by default
  • Loading branch information
turtleDeng committed Nov 9, 2016
2 parents 91eb89b + 06f5c8e commit e55bc26
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
17 changes: 11 additions & 6 deletions etc/emq.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ node.cookie = emq_dist_cookie
## SMP support: enable, auto, disable
node.smp = auto

## vm.args: -heart
## Heartbeat monitoring of an Erlang runtime system
## Value should be 'on' or comment the line
## node.heartbeat = on

## Enable kernel poll
node.kernel_poll = on

Expand Down Expand Up @@ -219,12 +224,12 @@ mqtt.listener.http.acceptors = 4
mqtt.listener.http.max_clients = 64

## HTTP(SSL) Listener
## mqtt.listener.https = 8084
## mqtt.listener.https.acceptors = 4
## mqtt.listener.https.max_clients = 64
## mqtt.listener.https.handshake_timeout = 15
## mqtt.listener.https.certfile = etc/certs/cert.pem
## mqtt.listener.https.keyfile = etc/certs/key.pem
mqtt.listener.https = 8084
mqtt.listener.https.acceptors = 4
mqtt.listener.https.max_clients = 64
mqtt.listener.https.handshake_timeout = 15
mqtt.listener.https.certfile = etc/certs/cert.pem
mqtt.listener.https.keyfile = etc/certs/key.pem
## mqtt.listener.https.cacertfile = etc/certs/cacert.pem
## mqtt.listener.https.verify = verify_peer
## mqtt.listener.https.fail_if_no_peer_cert = true
Expand Down
15 changes: 14 additions & 1 deletion priv/emq.schema
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
hidden
]}.

%% @doc http://erlang.org/doc/man/heart.html
{mapping, "node.heartbeat", "vm_args.-heart", [
{datatype, flag},
hidden
]}.

{translation, "vm_args.-heart", fun(Conf) ->
case cuttlefish:conf_get("node.heartbeat", Conf) of
true -> "";
false -> cuttlefish:invalid("should be 'on' or comment the line!")
end
end}.

%% @doc Enable Kernel Poll
{mapping, "node.kernel_poll", "vm_args.+K", [
{default, on},
Expand Down Expand Up @@ -338,7 +351,7 @@ end}.
%% @doc Max queue length. Enqueued messages when persistent client disconnected, or inflight window is full.
{mapping, "mqtt.queue.max_length", "emqttd.queue", [
{default, infinity},
{datatype, [atom, integer]}
{datatype, [integer, {atom, infinity}]}
]}.

%% @doc Low-water mark of queued messages
Expand Down

0 comments on commit e55bc26

Please sign in to comment.