Added support for multiple domains to ejabberd
This commit is contained in:
parent
356e8add9a
commit
b3ec5b3ea5
2 changed files with 13 additions and 8 deletions
|
@ -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 -%>
|
||||
|
||||
%%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue