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:
parent
6cdb517454
commit
152956c194
@ -228,25 +228,45 @@ mod_doc() ->
|
|||||||
"by default they point to the public Converse client.")
|
"by default they point to the public Converse client.")
|
||||||
],
|
],
|
||||||
example =>
|
example =>
|
||||||
|
[{?T("Manually setup WebSocket url, and use the public Converse client:"),
|
||||||
["listen:",
|
["listen:",
|
||||||
" -",
|
" -",
|
||||||
" port: 5280",
|
" port: 5280",
|
||||||
" module: ejabberd_http",
|
" module: ejabberd_http",
|
||||||
" request_handlers:",
|
" request_handlers:",
|
||||||
|
" /bosh: mod_bosh",
|
||||||
|
" /websocket: ejabberd_http_ws",
|
||||||
|
" /conversejs: mod_conversejs",
|
||||||
|
"",
|
||||||
|
"modules:",
|
||||||
|
" mod_bosh: {}",
|
||||||
|
" mod_conversejs:",
|
||||||
|
" websocket_url: \"ws://@HOST@:5280/websocket\""]},
|
||||||
|
{?T("Host Converse locally and let auto detection of WebSocket and Converse URLs:"),
|
||||||
|
["listen:",
|
||||||
|
" -",
|
||||||
|
" port: 443",
|
||||||
|
" module: ejabberd_http",
|
||||||
|
" tls: true",
|
||||||
|
" request_handlers:",
|
||||||
" /websocket: ejabberd_http_ws",
|
" /websocket: ejabberd_http_ws",
|
||||||
" /conversejs: mod_conversejs",
|
" /conversejs: mod_conversejs",
|
||||||
"",
|
"",
|
||||||
"modules:",
|
"modules:",
|
||||||
" mod_conversejs:",
|
" mod_conversejs:",
|
||||||
" conversejs_resources: \"/home/ejabberd/conversejs-9.0.0/package/dist\"",
|
" conversejs_resources: \"/home/ejabberd/conversejs-9.0.0/package/dist\""]},
|
||||||
" websocket_url: \"ws://example.org:5280/websocket\""
|
{?T("Configure some additional options for Converse"),
|
||||||
" conversejs_options:"
|
["modules:",
|
||||||
" auto_away: 30"
|
" mod_conversejs:",
|
||||||
" clear_cache_on_logout: true"
|
" websocket_url: auto",
|
||||||
" i18n: \"pt\""
|
" conversejs_options:",
|
||||||
" locked_domain: \"@HOST@\""
|
" auto_away: 30",
|
||||||
" message_archiving: always"
|
" clear_cache_on_logout: true",
|
||||||
" theme: concord"],
|
" i18n: \"pt\"",
|
||||||
|
" locked_domain: \"@HOST@\"",
|
||||||
|
" message_archiving: always",
|
||||||
|
" theme: concord"]}
|
||||||
|
],
|
||||||
opts =>
|
opts =>
|
||||||
[{websocket_url,
|
[{websocket_url,
|
||||||
#{value => ?T("auto | WebSocketURL"),
|
#{value => ?T("auto | WebSocketURL"),
|
||||||
|
Loading…
Reference in New Issue
Block a user