Update emq.conf and emq.schema

This commit is contained in:
Feng Lee 2018-01-12 10:46:35 +08:00
parent 56195670c6
commit a1cbdc5122
2 changed files with 5 additions and 6 deletions

View File

@ -1105,7 +1105,7 @@ listener.ws.external.send_timeout_close = on
## The TCP send buffer(os kernel) for external MQTT/Websocket connections.
##
## See 'listener.tcp.<name>.sndbuf'
## See: listener.tcp.<name>.sndbuf
##
## Value: Bytes
## listener.ws.external.sndbuf = 4KB
@ -1159,7 +1159,7 @@ listener.wss.external.max_clients = 64
## Mountpoint of the MQTT/Websocket/SSL Listener.
##
## See 'listener.tcp.<name>.mountpoint'
## See: listener.tcp.<name>.mountpoint
##
## Value: String
## listener.wss.external.mountpoint = inbound/
@ -1262,14 +1262,14 @@ listener.wss.external.certfile = {{ platform_etc_dir }}/certs/cert.pem
## TCP backlog for the Websocket/SSL connection.
##
## See 'listener.tcp.<name>.backlog'
## See listener.tcp.<name>.backlog
##
## Value: Number >= 0
listener.wss.external.backlog = 1024
## The TCP send timeout for the Websocket/SSL connection.
##
## See 'listener.tcp.<name>.send_timeout'
## See: listener.tcp.<name>.send_timeout
##
## Value: Duration
listener.wss.external.send_timeout = 15s

View File

@ -400,7 +400,7 @@ end}.
{translation,
"lager.handlers",
fun(Conf) ->
ErrorHandler = case cuttlefish:conf_get("log.error.file", Conf) of
ErrorHandler = case cuttlefish:conf_get("log.error.file", Conf, undefined) of
undefined -> [];
ErrorFilename -> [{lager_file_backend, [{file, ErrorFilename},
{level, error},
@ -442,7 +442,6 @@ end}.
cuttlefish:conf_get("log.syslog.facility", Conf),
cuttlefish:conf_get("log.syslog.level", Conf)]}]
end,
ConsoleHandlers ++ ErrorHandler ++ InfoHandler ++ SyslogHandler
end
}.