From 38a46f37aaf162529a3e644c8a10ca9bc2836490 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 4 May 2013 13:03:16 +0200 Subject: [PATCH] Increase rate limit for both c2s and s2s --- root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/45c2sS2SConf | 8 ++++---- root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/84TlsOut | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/84TlsOut diff --git a/root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/45c2sS2SConf b/root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/45c2sS2SConf index 7ce01fb..c9afd1b 100644 --- a/root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/45c2sS2SConf +++ b/root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/45c2sS2SConf @@ -3,11 +3,11 @@ % 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 "normal" to limit traffic speed to 10000B/s +{shaper, normal, {maxrate, 10000}}. -% Set shaper with name "fast" to limit traffic speed to 100000B/s -{shaper, fast, {maxrate, 100000}}. +% Set shaper with name "fast" to limit traffic speed to 500000B/s +{shaper, fast, {maxrate, 500000}}. % For all users except admins used "normal" shaper {access, c2s_shaper, [{none, admin}, diff --git a/root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/84TlsOut b/root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/84TlsOut new file mode 100644 index 0000000..04ee493 --- /dev/null +++ b/root/etc/e-smith/templates/etc/ejabberd/ejabberd.cfg/84TlsOut @@ -0,0 +1,3 @@ +% Use TLS for s2s if available +\{s2s_use_starttls, true\}. +\{s2s_certfile, "/var/service/ejabberd/ssl/cert.pem"\}.