|
@@ -1,6 +1,6 @@
|
|
|
% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
|
%% ex: ft=erlang ts=4 sw=4 et
|
|
%% ex: ft=erlang ts=4 sw=4 et
|
|
|
-[{kernel,
|
|
|
|
|
|
|
+[{kernel,
|
|
|
[{start_timer, true},
|
|
[{start_timer, true},
|
|
|
{start_pg2, true}
|
|
{start_pg2, true}
|
|
|
]},
|
|
]},
|
|
@@ -175,14 +175,22 @@
|
|
|
{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
|
|
|
- %% {autosub, [{"$Q/client/$c", 0}]}
|
|
|
|
|
|
|
+ {subscription, [
|
|
|
|
|
+ %% Subscription from stored table
|
|
|
|
|
+ stored,
|
|
|
|
|
+
|
|
|
|
|
+ %% $u will be replaced with username
|
|
|
|
|
+ {"$Q/username/$u", 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"}]}
|
|
|
-
|
|
|
|
|
]},
|
|
]},
|
|
|
%% Plugins
|
|
%% Plugins
|
|
|
{plugins, [
|
|
{plugins, [
|