From 200154014398e20c14510bb6e938c85b8ed72e5e Mon Sep 17 00:00:00 2001 From: Badlop Date: Sat, 9 May 2020 14:57:38 +0200 Subject: [PATCH] Provide minimal mod_bosh configuration example --- src/mod_bosh.erl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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