Akkoma/Pleroma

如何轻松将 XMPP 服务器与 AkkomaPleroma 集成。在下文中,我们将重点关注 Akkoma(更好的 Pleroma fork),但 Pleroma 的工作原理应该或多或少相同。

ejabberd XMPP 服务器与 Akkoma 集成的最简单方法是使用官方 Akkoma 文档中的外部认证脚本。它通过与 Akkoma http API 直接交互来工作。

请注意,这些 http 请求是未加密的,仅应在同一服务器或安全的内部网络中进行。

Another easy to use option is to run a bot on your Akkoma instance that can be interacted with to register accounts via the Ejabberd API. You can find the necessary bot software here. The this bot also has some other nice functionality to get details from Ejabberd, so it might be worth running even if another account integration method is used.

如果要设置新的 Akkoma 或 Pleroma 实例,您还可以考虑通过单独的 LDAP 数据库管理账号,如 Akkoma 官方文档中所述。有关 XMPP 服务器部分,请参阅我们的 LDAP 专用教程

您可以通过 auth_http_async 模块轻松地将 Akkoma 与 Prosody 集成。只需将其添加到您的 Prosody 服务器并按如下方式配置 VirtualHost:

authentication = "http_async"
http_auth_url = "http://127.0.0.1:4000/api/v1/accounts/verify_credentials"

This assumes that Akkoma and Prosody run on the same server, otherwise the 127.0.0.1 part needs to be adjusted with the actual internal IP or hostname of the Akkoma server.

请注意,这些 http 请求是未加密的,仅应在同一服务器或安全的内部网络中进行。