Mercurial > prosody-modules
view mod_http_muc_log/README.markdown @ 3495:5567098a7f91
mod_conversejs/README: Update text about mod_bosh and mod_websocket
2681f74750b2 made the text slightly misleading since either connection
methods can be disabled
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 24 Mar 2019 03:24:49 +0100 |
parents | 89a3f049689f |
children | dbc67120097f |
line wrap: on
line source
--- labels: - 'Stage-Beta' summary: Provides a web interface to stored chatroom logs ... Introduction ============ This module provides a built-in web interface to view chatroom logs stored by [mod\_mam\_muc]. Installation ============ Same as any other module, be sure to include the HTML template `http_muc_log.html` alongside `mod_http_muc_log.lua`. Configuration ============= For example: ``` lua Component "conference.example.com" "muc" modules_enabled = { "mam_muc"; "http_muc_log"; } storage = { muc_log = "sql"; -- for example } ``` The web interface would then be reachable at the address: http://conference.example.com:5280/muc_log/ See [the page about Prosodys HTTP server][doc:http] for info about the address. ## Styling The default HTML template lives in `http_muc_log.html` in the same directory as the module, but can be changed by setting `http_muc_log_template` to point to a different file. The same template, with different input is used for every view. The module uses [util.interpolation][doc:developers:util:interpolation] for rendering templates, with the pattern `"%b{}"` and HTML / XML escaping enabled. Compatibility ============= Requires Prosody 0.10 or above and a storage backend with support for stanza archives. See [mod\_storage\_muc\_log] for using legacy data from [mod\_muc\_log].