server.rst 1005 B

1234567891011121314151617181920212223242526272829
  1. Some server configurations
  2. =========================================
  3. iptables
  4. --------
  5. * use package iptables-persistent (Debian)
  6. * for packet forwarding, edit `/etc/sysctl.conf`
  7. SSL keys and certs for different services
  8. -----------------------------------------
  9. * lighttpd: cert and key in ``ssl.pemfile``, and chain in ``ssl.ca-file``
  10. * matrix-synapse: cert and key in ``tls_private_key_path``, and chain in ``tls_certificate_path``
  11. Configure ejabberd
  12. ------------------
  13. Modify the ejabberd.yml given by the distro according to the document in ejabberd.im.
  14. Before ejabberd 17.11, we need to put cert, intermediate cert and key in `certfile`, and starting from ejabberd 17.11, we can use the `certfiles` option::
  15. certfiles:
  16. - "/etc/ssl/xmpp/live/cnjabber.net/*.pem"
  17. Run ``ejabberdctl foreground`` to see if there is any error or warning. In Arch Linux, HOME needs to be set to /var/lib/ejabberd for user jabber::
  18. sudo -u jabber /usr/bin/env HOME=/var/lib/ejabberd ejabberdctl <sub cmd>