我想知道如何在ejabberd中设置muc并将数据存储在mysql.One中,以完成一个完美的聊天并存储在mysql数据库中。我们需要进行任何设置才能启用muc并将数据存储在MYSQL中
## This rule allows access only for local users:
local:
- allow: local
## Only non-blocked users can use c2s connections:
c2s:
- deny: blocked
- allow
## Only admins can send announcement messages:
announce:
- allow: admin
## Only admins can use the configuration interface:
configure:
- allow: admin
## Only accounts of the local ejabberd server can create rooms:
muc_create:
- allow: all
## Only accounts on the local ejabberd server can create Pubsub nodes:
pubsub_createnode:
- allow: local
## In-band registration allows registration of any possible username.
## To disable in-band registration, replace 'allow' with 'deny'.
register:
- allow: all
## Only allow to register from localhost
trusted_network:
谢谢
答案 0 :(得分:0)
要配置ejabberd以支持多用户聊天,您需要启用mod_muc
模块。它在ejabberd文档中描述:mod_muc。
如您所见,该模块支持db_type
参数,以指示它使用您配置的MySQL database作为后端。