forked from alekras/erl.mqtt.server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmqtt.config
59 lines (57 loc) · 1.65 KB
/
mqtt.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[
{sasl, [
{sasl_error_logger, false},
{utc_log, true}
]},
{lager, [
%% log levels: none, debug, info, notice, warning, error, critical, alert, emergency
{error_logger_redirect, false},
{log_root, "logs"},
{handlers, [
{lager_console_backend, [
{level, debug},
%% {level, error},
{formatter, lager_default_formatter},
{formatter_config, [
" ", date, "T", time, " [",severity,"] ", pid, " ",
{module, [module, ":"], [""]},
{function, [function, ":"], [""]},
{line, [line], [""]},
{endtype, [" -", endtype, "- "], [" - "]},
message, "\n"
]}
]},
{lager_file_backend, [
{file, "server.log.txt"},
{level, info},
{formatter, lager_default_formatter},
{formatter_config, [
date, "T", time, " [",severity,"] ", pid, " ",
{module, [module, ":"], [""]},
{function, [function, ":"], [""]},
{line, [line], [""]},
{endtype, [" -", endtype, "- "], [" - "]},
message, "\n"
]}
]}
]},
{traces, [
]}
]},
{mqtt_server, [
% {storage, mysql},
{storage, dets},
{port, 18883},
{port_tls, 18483},
{port_ws, 8880},
{port_wss, 4443},
{port_rest, 8080},
% {certfile, "/home/alexei/.ssh/lucky3p.com/certificate.crt"},
% {cacertfile, "/home/alexei/.ssh/lucky3p.com/ca_bundle.crt"},
% {keyfile, "/home/alexei/.ssh/lucky3p.com/private.key"},
{certfile, "tls_cnfg/server/cert.pem"},
{cacertfile, "tls_cnfg/server/cacerts.pem"},
{keyfile, "tls_cnfg/server/key.pem"},
{verify, verify_none}
]}
].