26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Add more configuration examples

This commit is contained in:
Badlop 2022-03-31 19:14:09 +02:00
parent 6cdb517454
commit 152956c194

View File

@ -227,26 +227,46 @@ mod_doc() ->
?T("When 'conversejs_css' and 'conversejs_script' are 'auto', " ?T("When 'conversejs_css' and 'conversejs_script' are 'auto', "
"by default they point to the public Converse client.") "by default they point to the public Converse client.")
], ],
example => example =>
["listen:", [{?T("Manually setup WebSocket url, and use the public Converse client:"),
" -", ["listen:",
" port: 5280", " -",
" module: ejabberd_http", " port: 5280",
" request_handlers:", " module: ejabberd_http",
" /websocket: ejabberd_http_ws", " request_handlers:",
" /conversejs: mod_conversejs", " /bosh: mod_bosh",
"", " /websocket: ejabberd_http_ws",
"modules:", " /conversejs: mod_conversejs",
" mod_conversejs:", "",
" conversejs_resources: \"/home/ejabberd/conversejs-9.0.0/package/dist\"", "modules:",
" websocket_url: \"ws://example.org:5280/websocket\"" " mod_bosh: {}",
" conversejs_options:" " mod_conversejs:",
" auto_away: 30" " websocket_url: \"ws://@HOST@:5280/websocket\""]},
" clear_cache_on_logout: true" {?T("Host Converse locally and let auto detection of WebSocket and Converse URLs:"),
" i18n: \"pt\"" ["listen:",
" locked_domain: \"@HOST@\"" " -",
" message_archiving: always" " port: 443",
" theme: concord"], " module: ejabberd_http",
" tls: true",
" request_handlers:",
" /websocket: ejabberd_http_ws",
" /conversejs: mod_conversejs",
"",
"modules:",
" mod_conversejs:",
" conversejs_resources: \"/home/ejabberd/conversejs-9.0.0/package/dist\""]},
{?T("Configure some additional options for Converse"),
["modules:",
" mod_conversejs:",
" websocket_url: auto",
" conversejs_options:",
" auto_away: 30",
" clear_cache_on_logout: true",
" i18n: \"pt\"",
" locked_domain: \"@HOST@\"",
" message_archiving: always",
" theme: concord"]}
],
opts => opts =>
[{websocket_url, [{websocket_url,
#{value => ?T("auto | WebSocketURL"), #{value => ?T("auto | WebSocketURL"),