23 lines
590 B
Plaintext
23 lines
590 B
Plaintext
{
|
|
$OUT =<<'HERE';
|
|
% Users can use c2s connections:
|
|
{access, c2s, [{allow, all}]}.
|
|
|
|
% Set shaper with name "normal" to limit traffic speed to 3000B/s
|
|
{shaper, normal, {maxrate, 3000}}.
|
|
|
|
% Set shaper with name "fast" to limit traffic speed to 100000B/s
|
|
{shaper, fast, {maxrate, 100000}}.
|
|
|
|
% For all users except admins used "normal" shaper
|
|
{access, c2s_shaper, [{none, admin},
|
|
{normal, all}]}.
|
|
|
|
% For all S2S connections used "fast" shaper
|
|
{access, s2s_shaper, [{fast, all}]}.
|
|
|
|
% Admins of this server are also admins of MUC service:
|
|
{access, muc_admin, [{allow, admin}]}.
|
|
HERE
|
|
}
|