ejabberd.yml 为 strophe 配置注册一个新用户
Posted
技术标签:
【中文标题】ejabberd.yml 为 strophe 配置注册一个新用户【英文标题】:ejabberd.yml configure for strophe register a new user 【发布时间】:2018-05-14 17:35:41 【问题描述】:我从这个链接安装了一个服务器 ejabberd 18.03 和客户端: https://gist.github.com/developerworks/317ccf6eb2d3060610f8 BOSH 连接 = http://localhost:5280/http-bind
我在控制台中的错误是:
服务器不支持带内注册
Ejabberd.yml 配置
端口:5280
ip: "::"
module: ejabberd_http
request_handlers:
"/ws": ejabberd_http_ws
"/bosh": mod_bosh
"/oauth": ejabberd_oauth
"/api": mod_http_api
http_bind: true
register: true
captcha: false
auth_method:内部
'访问控制列表
管理员:
user:
- "admin@localhot"
本地:
user_regexp: ""
环回:
ip:
- "127.0.0.0/8"
- "::1/128"
- "::FFFF:127.0.0.1/128"
' 形状规则
最大用户会话数:10
max_user_offline_messages:
- 5000: admin
- 100
c2s_shaper:
- none: admin
- normal
'访问规则
本地: - 允许:本地 c2s: - 拒绝:被阻止 - 允许
注册: - 允许:trusted_network
可信网络:
- allow: all
'模块
mod_register:
##
## Protect In-Band account registrations with CAPTCHA.
##
## captcha_protected: true
##
## Set the minimum informational entropy for passwords.
##
## password_strength: 32
##
## After successful registration, the user receives
## a message with this subject and body.
##
welcome_message:
subject: "Welcome!"
body: |-
Hi.
Welcome to this XMPP server.
##
## When a user registers, send a notification to
## these XMPP accounts.
##
registration_watchers:
- "admin1@example.org"
##
## Only clients in the server machine can register accounts
##
ip_access: trusted_network
##
## Local c2s or remote s2s users cannot register accounts
##
access_from: register
access: register
【问题讨论】:
【参考方案1】:而不是
register:
- allow: trusted_network
放
register:
- allow: all
【讨论】:
如何解决这个错误 man以上是关于ejabberd.yml 为 strophe 配置注册一个新用户的主要内容,如果未能解决你的问题,请参考以下文章
使用 strophe.pubsub 插件为多个发布者配置 pubsub 节点或创建白名单