Skip to content
Jaussoin Timothée edited this page Feb 6, 2023 · 23 revisions

The prosody documentation is quite complete and we recommend you read it when configuring your server.

HTTP Upload

For files/images upload Movim requires HTTP upload service, for Prosody available as community modules:

HTTP Upload service have to provide a few CORS headers to work with Movim:

Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: OPTIONS, HEAD, GET, PUT
Access-Control-Allow-Headers: Authorization
Access-Control-Allow-Credentials: true

PEP and PubSub

Since Prosody 0.11, PubSub features required by Movim are supported, (included PEP, which is using the a subset of PubSub).

Movim requires that your PEP and PubSub modules accept a high number of items. You can do this the following way:

-- In the global section, or in your VirtualHost
pep_max_items = 10000

-- For your PubSub component
Component "pubsub.example.com" "pubsub"
    pubsub_max_items = 10000
    expose_publisher = true

You can setup multiple Pubsub service by declaring multiple components with different hostnames.

The default value for max_items in a node in Prosody is 1. Prosody limits the maximum number of items that can be configured on a Pubsub/PEP node to 256 by default. To change this, you can set pubsub_max_items and pep_max_items in your configuration file.

expose_publisher = true is also required to allow Movim to know the original JID of the posts and comments/likes and trust them. Please also follow the comments.domain.name advice and configure it the same way

Prosody's limitations:

  • to create comment nodes, the post's author have to be admin of the service (Prosody 0.11.x, ACL are planned for 0.13), posting comments into existing comments nodes is not affected by this (see issue).
  • Prosody doesn't support XEP-0059 for PubSub, thus pagination in nodes will not work (see issue).

For more information, https://prosody.im/doc/modules/mod_pubsub and https://prosody.im/doc/modules/mod_pep.

Contact Addresses

https://prosody.im/doc/modules/mod_server_contact_info