ejabberd: Make some limits configurable

This commit is contained in:
Ossi Salmi 2016-08-31 13:09:37 +03:00
parent 2531dbb3ac
commit 164c79ef52
2 changed files with 16 additions and 4 deletions

View file

@ -28,6 +28,15 @@
# Number of seconds that ejabberd can cache external authentication # Number of seconds that ejabberd can cache external authentication
# information. Disabled by default. # information. Disabled by default.
# #
# $max_user_sessions:
# Maximum number of sessions per user. Defaults to 1000.
#
# $max_user_conferences:
# Maximum number of conferences per user. Defaults to 2000.
#
# $muc_max_users:
# Maximum number of users per conference. Defaults to 1000.
#
# $muclog_datadir: # $muclog_datadir:
# Path where to store chatroom logs. Disabled by default. # Path where to store chatroom logs. Disabled by default.
# #
@ -76,6 +85,9 @@ class ejabberd(
$auth='internal', $auth='internal',
$extauth=undef, $extauth=undef,
$extauth_cache=false, $extauth_cache=false,
$max_user_sessions='1000',
$max_user_conferences='2000',
$muc_max_users='1000',
$muclog_datadir=undef, $muclog_datadir=undef,
$muclog_default=true, $muclog_default=true,
$muclog_format='plaintext', $muclog_format='plaintext',

View file

@ -141,7 +141,7 @@ access:
admin: 1000 admin: 1000
all: 100 all: 100
max_user_sessions: max_user_sessions:
all: 1000 all: <%= @max_user_sessions %>
muc: muc:
local: allow local: allow
muc_admin: muc_admin:
@ -180,8 +180,8 @@ modules:
access_create: muc_create access_create: muc_create
access_persistent: muc_create access_persistent: muc_create
history_size: 100 history_size: 100
max_users: 1000 max_users: <%= @muc_max_users %>
max_user_conferences: 2000 max_user_conferences: <%= @max_user_conferences %>
default_room_options: default_room_options:
allow_user_invites: true allow_user_invites: true
anonymous: false anonymous: false
@ -190,7 +190,7 @@ modules:
<% else -%> <% else -%>
logging: false logging: false
<% end -%> <% end -%>
max_users: 1000 max_users: <%= @muc_max_users %>
members_by_default: false members_by_default: false
members_only: true members_only: true
public: false public: false