comparison mod_pastebin.wiki @ 272:d4d1035c8700

Added note about default URL (thanks Nulani)
author MWild1@gmail.com
date Mon, 09 Apr 2012 15:14:51 +0000
parents 000cd449e801
children 25afe4b60780
comparison
equal deleted inserted replaced
271:5e3007c66b14 272:d4d1035c8700
7 7
8 Not for everyone... no matter how hard you try, people will be unaware, or not care. They may also be too lazy to visit a pastebin. This is where mod_pastebin comes in! 8 Not for everyone... no matter how hard you try, people will be unaware, or not care. They may also be too lazy to visit a pastebin. This is where mod_pastebin comes in!
9 9
10 = Details = 10 = Details =
11 11
12 When someone posts to a room a "large" (configurable) message, Prosody will intercept the message and convert it to a URL pointing to a built-in pastebin server. The URLs are randomly generated, so they can be considered for most purposes to be private, and cannot be discovered by people who are not in the room. 12 When someone posts to a room a "large" (the actual limit is configurable) message, Prosody will intercept the message and convert it to a URL pointing to a built-in pastebin server. The URLs are randomly generated, so they can be considered for most purposes to be private, and cannot be discovered by people who are not in the room.
13 13
14 = Usage = 14 = Usage =
15 15
16 To set up mod_pastebin for MUC rooms it *must* be explicitly loaded, as in the example below - it won't work when loaded globally, as that will only load it onto normal virtual hosts. 16 To set up mod_pastebin for MUC rooms it *must* be explicitly loaded, as in the example below - it won't work when loaded globally, as that will only load it onto normal virtual hosts.
17 17
18 For example: 18 For example:
19 {{{ 19 {{{
20 Component "conference.example.com" "muc" 20 Component "conference.example.com" "muc"
21 modules_enabled = { "pastebin" } 21 modules_enabled = { "pastebin" }
22 }}} 22 }}}
23
24 Pastes will be available by default at `http://<your-prosody>:5280/pastebin/` by default. This can be changed with `pastebin_ports` (see below), or you can forward another external URL from your web server to Prosody, use `pastebin_url` to set that URL.
23 25
24 = Configuration = 26 = Configuration =
25 ||pastebin_ports||List of ports to run the HTTP server on, same format as mod_httpserver's http_ports|| 27 ||pastebin_ports||List of ports to run the HTTP server on, same format as mod_httpserver's http_ports||
26 ||pastebin_threshold||Maximum length (in characters) of a message that is allowed to skip the pastebin. (default 500 characters)|| 28 ||pastebin_threshold||Maximum length (in characters) of a message that is allowed to skip the pastebin. (default 500 characters)||
27 ||pastebin_line_threshold||The maximum number of lines a message may have before it is sent to the pastebin. (default 4 lines)|| 29 ||pastebin_line_threshold||The maximum number of lines a message may have before it is sent to the pastebin. (default 4 lines)||