-
Notifications
You must be signed in to change notification settings - Fork 5
/
sys.config
77 lines (77 loc) · 2.68 KB
/
sys.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[
{emq_dashboard, [
{listeners_dash, [
{http,18083,[{acceptors,4},{max_clients,512}]}
]},
{default_admin, [
{name, <<"nynja">>},
{password, <<"nynjaAdmin">>}
]}
]},
{emq_modules, [{modules,[{emq_mod_presence,[{qos,1}]},
{emq_mod_subscription,[{<<"%u/%c/#">>,2}]},
{emq_mod_rewrite,[{rewrite,"x/#","^x/y/(.+)$","z/y/$1"},
{rewrite,"y/+/z/#","^y/(.+)/z/(.+)$","y/z/$2"}]}]}]},
{emqttd,
[{plugins_loaded_file,"etc/loaded_plugins"},
{plugins_etc_dir,"etc/plugins/"},
{broker_sys_interval,60},
{conn_force_gc_count,100},
{cache_acl,true},
{acl_file,"etc/acl.conf"},
{allow_anonymous,true},
{protocol,[{max_clientid_len,1024},{max_packet_size,262144}]},
{client,[{client_idle_timeout,30000},{client_enable_stats,false}]},
{session,
[{upgrade_qos,false},
{max_inflight,32},
{retry_interval,20000},
{max_awaiting_rel,100000},
{await_rel_timeout,20000},
{enable_stats,false},
{expiry_interval,7200000}]},
{queue,
[{priority,[]},
{type,simple},
{max_length,infinity},
{low_watermark,0.2},
{high_watermark,0.6},
{queue_qos0,true}]},
{pubsub,[{pool_size,8},{by_clientid,true},{async,true}]},
{bridge,[{max_queue_len,10000},{ping_down_interval,1}]},
{listeners,
[{tcp,1883,
[{connopts,[]},
{sockopts,[{backlog,1024},{nodelay,true}]},
{acceptors,8},
{max_clients,1024},
{tune_buffer,false}]},
{ssl,8883,
[{sslopts,
[{versions,['tlsv1.2','tlsv1.1',tlsv1]},
{keyfile,"etc/certs/key.pem"},
{certfile,"etc/certs/cert.pem"}]},
{connopts,[]},
{sockopts,[{nodelay,true}]},
{acceptors,4},
{max_clients,512}]},
{http,8083,
[{connopts,[]},
{sockopts,[{nodelay,true}]},
{acceptors,4},
{max_clients,64}]},
{https,8084,
[{sslopts,
[{keyfile,"etc/certs/key.pem"},
{certfile,"etc/certs/cert.pem"}]},
{connopts,[]},
{sockopts,[{nodelay,true}]},
{acceptors,4},
{max_clients,64}]}]},
{sysmon,
[{long_gc,false},
{long_schedule,240},
{large_heap,8388608},
{busy_port,false},
{busy_dist_port,false}]}]}
].