![]() This should also be backed up.Īll these files are owned by ejabberd user inside the container. /opt/ejabberd/upload/: Directory containing uploaded files. ![]() /opt/ejabberd/logs/: Directory containing log files.(host storage, local storage, any storage plugin) You should back up or export the content of the directory to persistent storage /opt/ejabberd/database/: Directory containing Mnesia database./opt/ejabberd/conf/: Directory containing configuration and certificates.This is the kind of data you probably want to store on a persistent or local drive (at least the database). 5210: Erlang connectivity when ERL_DIST_PORT is set, alternative to EPMDĮjabberd produces two types of data: log files and database spool files (Mnesia).4369-4399: EPMD and Erlang connectivity, used for ejabberdctl and clustering.5443: With encryption, used for admin interface, API, CAPTCHA, OAuth, Websockets and XMPP BOSH.Only needed if you want to communicate with users on other servers. 5222: The default port for XMPP clients.Now update your ejabberd configuration file, for example: docker exec -it ejabberd vi conf/ejabberd.ymlĪnd add the required options: captcha_cmd: /opt/ejabberd-22.04/lib/ejabberd-22.04/priv/bin/captcha.shĬaptcha_url: Finally, reload the configuration file or restart the container: docker exec ejabberd ejabberdctl reload_config If you want to use any of them, first install some additional required libraries: docker exec -user root ejabberd apk add imagemagick ghostscript-fonts bash Open an interactive debug Erlang console attached to a running ejabberd in a running container: docker exec -it ejabberd ejabberdctl debugĮjabberd includes two example CAPTCHA scripts. ![]() Start a shell inside the container: docker exec -it ejabberd sh Then edit conf/ejabberd.yml and add the ACL as explained inĮjabberd Docs: Administration Account Check ejabberd log filesĬheck the content of the log files inside the container,Įven if you do not put it on a shared persistent drive: docker exec -it ejabberd tail -f logs/ejabberd.log Register an account using the ejabberdctl script: docker exec -it ejabberd ejabberdctl register admin localhost passw0rd You may want to register a new account in ejabberd The default ejabberd configuration does not grant admin privileges Next steps Register the administrator account Notice that ejabberd runs in the container with an account named ejabberd,Īnd the volumes you mount must grant proper rights to that account. p 5222:5222 ghcr.io/processone/ejabberd live v $( pwd )/database:/opt/ejabberd/database \ v $( pwd )/ejabberd.yml:/opt/ejabberd/conf/ejabberd.yml \ Start with your configuration and databaseĪnd share the local directory to store database: mkdir database That uses the default configuration file and XMPP domain "localhost". Start ejabberd with an Erlang console attached using the live command: docker run -name ejabberd -it -p 5222:5222 ghcr.io/processone/ejabberd live Restart the stopped ejabberd container: docker restart ejabberd Stop the running container: docker stop ejabberd Using ejabberd default configuration file and XMPP domain "localhost". Start ejabberd in a new container: docker run -name ejabberd -d -p 5222:5222 ghcr.io/processone/ejabberd Start ejabberd With default configuration If you are using a Windows operating system, check the tutorials mentioned inĮjabberd Docs > Docker Image. That includes XMPP Server, MQTT Broker and SIP Service.Īvailable in the GitHub Container Registry,īuilt using the files in. You should now be logged in to the web admin interface.Robust, scalable and extensible realtime platform built using Erlang/OTP, You will be asked for a username and password. Point a web browser to (replace with the hostname or IP address of your Jabber server that would be localhost if you are using the computer directly). ![]() Use a Jabber client to register the accounts you designated as admins in the previous step. Now, start the server (see the guide, section "Starting"). If you are worried about that, do the following step, stop the server, and then do this step. This means that someone could register this account just after you start the server, and thus become server administrator. Note: In the default configuration, account registration is free. This means that the user can configure the server in various ways through a Jabber client or through the web interface. Set your hostnameįind the line that says. These things are explained more thoroughly in the ejabberd installation and operation guide this document is intended as a gentle introduction. The most important things to do are to set your hostname and set up admin users that's enough to get your server running. There is a file called in the distribution copy it to ejabberd.cfg and start editing it. After you have installed ejabberd, you need to configure it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |