From 225ce0a59cf0663dbc575fc7f89310433e4e62ac Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 17 Apr 2023 12:14:15 +0200 Subject: [PATCH] No need to setup captcha_url, by default auto may be good enough --- ecs/README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ecs/README.md b/ecs/README.md index 24e70a0..f5ac2d3 100644 --- a/ecs/README.md +++ b/ecs/README.md @@ -115,10 +115,9 @@ Now update your ejabberd configuration file, for example: docker exec -it ejabberd vi conf/ejabberd.yml ``` -and add the required options: -``` +and add this option: +```yaml captcha_cmd: /home/ejabberd/lib/ejabberd-21.1.0/priv/bin/captcha.sh -captcha_url: https://localhost:5443/captcha ``` Finally, reload the configuration file or restart the container: @@ -126,6 +125,19 @@ Finally, reload the configuration file or restart the container: docker exec ejabberd bin/ejabberdctl reload_config ``` +If the CAPTCHA image is not visible, there may be a problem generating it +(the ejabberd log file may show some error message); +or the image URL may not be correctly detected by ejabberd, +in that case you can set the correct URL manually, for example: +```yaml +captcha_url: https://localhost:5443/captcha +``` + +For more details about CAPTCHA options, please check the +[CAPTCHA](https://docs.ejabberd.im/admin/configuration/basic/#captcha) +documentation section. + + ## Use ejabberdapi When the container is running (and thus ejabberd), you can exec commands inside the container