ejabberd - Comments for "Allow ADMINS only to create PUBLIC Chatrooms"
https://www.ejabberd.im/node/24957
enNot possible to configure
https://www.ejabberd.im/node/24957#comment-65866
<p>Not possible to configure different permissions to different ACLs in the same mod_muc.</p>
<p>The only way I can think is to setup two different MUC services, configure one for public rooms only created by admins, and the other for private rooms created by anyone. How to setup two different mod_muc? here is the tricky part: you need to add a vhost. And later show the second MUC in the Service Discovery of the main server.</p>
<p>Let's imagine your vhost is "localhost", then add another almost useless vhost called "12.0.0.1" in this example, configure two mod_muc differently, like this:</p>
<pre>
hosts:
- "localhost"
- "127.0.0.1"
append_host_config:
"localhost":
modules:
mod_muc:
host: "public.localhost"
access_create: muc_admin
default_room_options:
public: true
public_list: true
mod_disco:
extra_domains: ["private.127.0.0.1"]
append_host_config:
"127.0.0.1":
modules:
mod_muc:
host: "private.127.0.0.1"
access_create: muc
default_room_options:
public: false
public_list: false
</pre>Thu, 25 Jun 2015 09:24:00 +0000badlopcomment 65866 at https://www.ejabberd.im