0.17.0 config
This commit is contained in:
parent
978413298d
commit
c626eadad4
|
@ -79,7 +79,7 @@
|
||||||
%% Max ClientId Length Allowed
|
%% Max ClientId Length Allowed
|
||||||
{max_clientid_len, 1024},
|
{max_clientid_len, 1024},
|
||||||
%% Max Packet Size Allowed, 64K default
|
%% Max Packet Size Allowed, 64K default
|
||||||
{max_packet_size, 65536}
|
{max_packet_size, 65536}
|
||||||
]},
|
]},
|
||||||
%% Client
|
%% Client
|
||||||
{client, [
|
{client, [
|
||||||
|
@ -176,11 +176,8 @@
|
||||||
%% Static subscriptions from backend
|
%% Static subscriptions from backend
|
||||||
backend,
|
backend,
|
||||||
|
|
||||||
%% $u will be replaced with username
|
%% $c will be replaced by clientid
|
||||||
{"$Q/username/$u", 1},
|
{"$queue/clients/$c", 1}
|
||||||
|
|
||||||
%% $c will be replaced with clientid
|
|
||||||
{"$Q/client/$c", 1}
|
|
||||||
]}
|
]}
|
||||||
|
|
||||||
%% Rewrite rules
|
%% Rewrite rules
|
||||||
|
|
|
@ -77,9 +77,6 @@
|
||||||
{client, [
|
{client, [
|
||||||
%% Socket is connected, but no 'CONNECT' packet received
|
%% Socket is connected, but no 'CONNECT' packet received
|
||||||
{idle_timeout, 20} %% seconds
|
{idle_timeout, 20} %% seconds
|
||||||
%TODO: Network ingoing limit
|
|
||||||
%{ingoing_rate_limit, '64KB/s'}
|
|
||||||
%TODO: Reconnet control
|
|
||||||
]},
|
]},
|
||||||
%% Session
|
%% Session
|
||||||
{session, [
|
{session, [
|
||||||
|
@ -164,19 +161,16 @@
|
||||||
{modules, [
|
{modules, [
|
||||||
%% Client presence management module.
|
%% Client presence management module.
|
||||||
%% Publish messages when client connected or disconnected
|
%% Publish messages when client connected or disconnected
|
||||||
{presence, [{qos, 0}]}
|
{presence, [{qos, 0}]},
|
||||||
|
|
||||||
%% Subscribe topics automatically when client connected
|
%% Subscribe topics automatically when client connected
|
||||||
%% {subscription, [
|
{subscription, [
|
||||||
%% %% Static subscriptions from backend
|
%% Static subscriptions from backend
|
||||||
%% backend,
|
backend,
|
||||||
%%
|
|
||||||
%% %% $u will be replaced with username
|
%% $c will be replaced by clientid
|
||||||
%% {"$Q/username/$u", 1},
|
{"$queue/clients/$c", 1}
|
||||||
%%
|
]}
|
||||||
%% %% $c will be replaced with clientid
|
|
||||||
%% {"$Q/client/$c", 1}
|
|
||||||
%% ]}
|
|
||||||
|
|
||||||
%% Rewrite rules
|
%% Rewrite rules
|
||||||
%% {rewrite, [{file, "etc/rewrite.config"}]}
|
%% {rewrite, [{file, "etc/rewrite.config"}]}
|
||||||
|
|
|
@ -152,15 +152,6 @@
|
||||||
%% Default should be scheduler numbers
|
%% Default should be scheduler numbers
|
||||||
{pool_size, 8},
|
{pool_size, 8},
|
||||||
|
|
||||||
%% Subscription: disc | ram | false
|
|
||||||
{subscription, ram},
|
|
||||||
|
|
||||||
%% Route shard
|
|
||||||
{route_shard, false},
|
|
||||||
|
|
||||||
%% Route delay, false | integer
|
|
||||||
{route_delay, false},
|
|
||||||
|
|
||||||
%% Route aging time(seconds)
|
%% Route aging time(seconds)
|
||||||
{route_aging, 5}
|
{route_aging, 5}
|
||||||
]},
|
]},
|
||||||
|
@ -182,14 +173,14 @@
|
||||||
|
|
||||||
%% Subscribe topics automatically when client connected
|
%% Subscribe topics automatically when client connected
|
||||||
{subscription, [
|
{subscription, [
|
||||||
%% Subscription from stored table
|
%% Static subscriptions from backend
|
||||||
stored,
|
backend,
|
||||||
|
|
||||||
%% $u will be replaced with username
|
%% $u will be replaced with username
|
||||||
{"$Q/username/$u", 1},
|
{"$queue/username/$u", 1},
|
||||||
|
|
||||||
%% $c will be replaced with clientid
|
%% $c will be replaced with clientid
|
||||||
{"$Q/client/$c", 1}
|
{"$queue/clients/$c", 1}
|
||||||
]}
|
]}
|
||||||
|
|
||||||
%% Rewrite rules
|
%% Rewrite rules
|
||||||
|
|
Loading…
Reference in New Issue