|
mod_muc_log_http
Provides a web interface to stored chatroom logs
Stage-Beta IntroductionThis module provides a built-in web interface to view chatroom logs stored by mod_muc_log. InstallationJust copy the folder muc_log_http as it is, into the modules folder of your Prosody installation. Configuration DetailsYou need to add muc_log_http to your global modules_enabled, and the configuration options similarly must be put into your global (server-wide) options section: modules_enabled = {
.....
"muc_log_http";
.....
}
muc_log_http = {
http_port = 5290; -- default is 5290
showJoin = false; -- default is true
showStatus = false; -- default is true
theme = "prosody"; -- default is theme "prosody"
}showJoin sets the default for showing joins or leaves. showStatus sets the default for showing status changes. The web interface would then be reachable at the address: http://example.com:5290/muc_log/ TODO
|
► Sign in to add a comment
Seem working and very pretty plugin :) But muc_log_http options seems to be unused :( (and i can't put it on the 5280 port with the pastbin plugin)
It's used, but make sure you put it in the global section, not under a VirtualHost? or Component.
I'm fairly sure it can share the same port as mod_pastebin (the Prosody HTTP API is designed specifically to allow this).
With muc_log_http config in the global section and the "muc_log_http" enabled only in wirtualhost, config is ignored. With all in global, config is taken, but when i go to myurl:5280/muc_log/ i've a blank page. I've commented the theme section to not interfere, but the page is always blank (no error, when i go to not existing page, i've an error) Do you have any idea of the way to debug this ? I've nothing in logs (if necessary, i can open a bug in the bugtracker). Thanks
Correction: if i go to myurl:5280/muc_log/: blank page but if i go to myurl:5280/muc_log/conference.mydomain all is good. It's not really an issue, but it is to know.
It's not possible to edit a comment here ? ;)
When i go to myurl:5280/muc_log/conference.mydomain/myroom, blank page too :( (finally, it's really an issue :))
As the wiki page says, you need to put the module in the global section, as well as its config option(s).
This module does need some general developer love (that's why it's still beta). It's fussy about the format of some URLs. Try a '/' at the end of the URL?
PS. No, it's not possible to edit comments here - it's not meant to be a forum :)
Finally, after really many tests, the only way to get it working il to enable it in the virtualhost (mod_muc_log and mod_muc_log_http) and to configure it BEFORE I enable it (and I assume that it will work if declared in global section and configured before, but it does no work if declared in global section and configured after enable it).
I think now it's possible to open a bug in the bugtraker ;)