diff --git a/README.md b/README.md index 6791b6d..c960f9a 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,11 @@ listen: /captcha: ejabberd_captcha /upload: mod_http_upload /ws: ejabberd_http_ws + custom_headers: + "Access-Control-Allow-Origin": "*" + "Access-Control-Allow-Methods": "OPTIONS, HEAD, GET, PUT" + "Access-Control-Allow-Headers": "Authorization" + "Access-Control-Allow-Credentials": "true" - port: 5280 ip: "::" @@ -256,7 +261,8 @@ mod_http_upload: put_url: "https://xmpp.@HOST@:5444/upload" get_url: "https://xmpp.@HOST@:5444/upload" docroot: /var/www/upload - max_size: 262144000 # 250 MB + max_size: 500000000 # 500 MB + thumbnail: false file_mode: "0644" dir_mode: "2755" secret_length: 20 @@ -269,6 +275,54 @@ mod_http_upload: max_days: 30 ``` +On corrige la configuration de PEP : +``` +mod_pubsub: + host: "pubsub.@HOST@" + access_createnode: pubsub_createnode + ignore_pep_from_offline: false + last_item_cache: false + max_items_node: 1000 + default_node_config: + max_items: 1000 + plugins: + - flat + - pep + force_node_config: + "eu.siacs.conversations.axolotl.*": + access_model: open + ## Avoid buggy clients to make their bookmarks public + storage:bookmarks: + access_model: whitelist + "urn:xmpp:bookmarks:0": + access_model: whitelist + send_last_published_item: never + persist_items: true + max_items: infinity + "urn:xmpp:bookmarks:1": + access_model: whitelist + send_last_published_item: never + persist_items: true + max_items: infinity + "urn:xmpp:pubsub:movim-public-subscription": + access_model: whitelist + persist_items: true + max_items: infinity + "storage:bookmarks": + access_model: whitelist + "urn:xmpp:microblog:0": + max_items: infinity + access_model: presence + notify_retract: true + persist_items: true + "urn:xmpp:microblog:0:comments*": + max_items: infinity + access_model: open + notify_retract: true + persist_items: true + +``` + Et enfin, pour que les appels audio/vidéo fonctionnent correctement : ```