You could use a differently defined config to achieve same results. Please remember that this configuration is not strict. See the Jabber SPAM Manifesto for details: # Think twice before enabling registration from any # network (see access_rules section above). # Only accept registration requests from the "trusted" # Avoid buggy clients to make their bookmarks public Uncomment this when you have SQL configured:Īccess_max_user_messages: max_user_offline_messages # For small servers SQLite is a good fit and is very easy # Mnesia is limited to 2GB, better to use an SQL backend "Access-Control-Allow-Headers": "Content-Type" "Access-Control-Allow-Origin": "GET,HEAD,PUT,OPTIONS" "/.well-known/acme-challenge": ejabberd_acme # ******* MAKE SURE YOU INDENT SECTIONS CORRECTLY ******* # ******* YAML IS INDENTATION SENSITIVE ******* # The configuration file is written in YAML. # The parameters used in this configuration file are explained at Remember to also refer to the latest official “ejabberd.yml” example, but note it could contain new parameters for features in-development, not yet supported by your ejabberd XMPP server. To learn from this config file, compare it with yours and adjust accordingly. This config contains placeholders like “”, and “0.0.0.0” that should be changed to your actual domain, email and server IP address. It may not “just work” in older or newer ejabberd XMPP server versions. Here’s my full ejabberd XMPP server configuration file that follows all my previous tutorials: basic setup, HTTP file upload, STUN/TURN video & voice calling, MUC archiving and 100% compliance with the XMPP Test.ĭon’t copy-paste this configuration! It is based on the default config from ejabberd XMPP server version 20.04. Once you get used to the ejabberd.yml syntax, the best way to debug and fix your problems is to compare config files with others. As a last resort, you can destroy and re-create rooms again after you apply the settings below: mod_mam:Ĭomparing ejabberd XMPP server configuration files You can do it using a client like Gajim, or using ejabberd XMPP server command-line interface. Existing group chats won’t have archiving enabled unless you switch that on in their configuration, one by one. You need to change settings of mod_mam and mod_muc. With mod_mam enabled, they won’t miss any discussions. It’s very useful in an office environment where not everyone is able to be one the group chat at all times. Using mod_mam you can set your group chats to sync previous messages when a user joins them. Group chat archiving on ejabberd XMPP server If you don’t configure these subdomains, you will find a warning about them in the ejabberd XMPP server logs during each startup. If you can, simplify things and use a wildcard certificate and a wildcard subdomain. Make sure all these subdomains use the SSL certificate supplied to ejabberd XMPP server. “A” records should pointing to the same IP address as your main domain. It’s a good practice to configure extra subdomains for your ejabberd XMPP server. I assume the starting ejabberd configuration from my article on setting up your ejabberd real time IM server and configuring ejabberd video & voice calling, as well as the one on how to get 100% in XMPP server compliance test. In this article I will share some configuration steps that I made while I was preparing my previous ejabberd XMPP server tutorials.
0 Comments
Leave a Reply. |