aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2020-05-09 14:57:38 +0200
committerBadlop <badlop@process-one.net>2020-05-09 15:04:10 +0200
commit200154014398e20c14510bb6e938c85b8ed72e5e (patch)
treef9dcd58c4b79e3a4d87fb06b939b6ded109ac63b /src
parentAdd link in acme option to ACME section in ejabberd Docs (diff)
Provide minimal mod_bosh configuration example
Diffstat (limited to 'src')
-rw-r--r--src/mod_bosh.erl15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mod_bosh.erl b/src/mod_bosh.erl
index f4a717b29..b86a67728 100644
--- a/src/mod_bosh.erl
+++ b/src/mod_bosh.erl
@@ -260,7 +260,20 @@ mod_doc() ->
{cache_life_time,
#{value => "timeout()",
desc =>
- ?T("Same as top-level 'cache_life_time' option, but applied to this module only.")}}]}.
+ ?T("Same as top-level 'cache_life_time' option, but applied to this module only.")}}],
+ example =>
+ ["listen:",
+ " -",
+ " port: 5222",
+ " module: ejabberd_c2s",
+ " -",
+ " port: 5443",
+ " module: ejabberd_http",
+ " request_handlers:",
+ " /bosh: mod_bosh",
+ "",
+ "modules:",
+ " mod_bosh: {}"]}.
%%%----------------------------------------------------------------------
%%% Cache stuff