..  GENERATED FILE, DO NOT EDIT DIRECTLY

    This file is automatically generated using https://codeberg.org/slidge/legacy-module-template/
    Its source is at:
    https://codeberg.org/slidge/legacy-module-template/src/branch/main/docs/source/admin/examples/index.rst.jinja
    Open a pull request for this repository instead, to benefit the documentation of all slidge-based gateways.


============================
XMPP server configs examples
============================

.. note::

  These examples are not meant to be complete, but rather show the relevant
  parts for slidge.

prosody/upload
==============

.. literalinclude:: prosody-upload.cfg.lua
  :language: lua
  :linenos:

prosody/no-upload
=================

.. literalinclude:: prosody-noupload.cfg.lua
  :language: lua
  :linenos:

ejabberd/upload
===============

.. note::
    This example does not cover the `No upload` option for attachments (see :ref:`config`).
    For 'no upload' with ejabberd, you need an external HTTP server, eg
    :ref:`nginx-no-upload`.

.. literalinclude:: ejabberd.yaml
  :language: yaml
  :linenos:
