Added support for multiple domains to ejabberd

This commit is contained in:
Ossi Salmi 2011-04-11 16:53:37 +03:00 committed by Timo Mkinen
parent 356e8add9a
commit b3ec5b3ea5
2 changed files with 13 additions and 8 deletions

View file

@ -81,7 +81,8 @@ override_acls.
%% You can define one or several, for example:
%% {hosts, ["example.net", "example.com", "example.org"]}.
%%
{hosts, ["<%= ejabberd_domain %>"]}.
<% ejabberd_hosts.map! { |host| '"%s"' % host } -%>
{hosts, [<%= ejabberd_hosts.join(", ") %>]}.
%%
%% route_subdomains: Delegate subdomains to other Jabber server.
@ -390,8 +391,9 @@ override_acls.
%% The 'admin' ACL grants administrative privileges to Jabber accounts.
%% You can put as many accounts as you want.
%%
<% ejabberd_adminusers.each do |user| -%>
{acl, admin, {user, "<%= user %>", "<%= ejabberd_domain %>"}}.
<% ejabberd_admin.each do |admin|
user, host = admin.split("@") -%>
{acl, admin, {user, "<%= user %>", "<%= host %>"}}.
<% end -%>
%%