Mercurial > prosody-modules
annotate mod_extdisco/README.md @ 6261:1c62edeb9147
mod_pastebin: Update Readme
diff --git a/mod_pastebin/README.md b/mod_pastebin/README.md
--- a/mod_pastebin/README.md
+++ b/mod_pastebin/README.md
@@ -37,12 +37,14 @@ For example:
Pastes will be available by default at
`http://<your-prosody>:5280/pastebin/` by default.
-In Prosody 0.9 and later this can be changed with [HTTP
-settings](https://prosody.im/doc/http).
+Ports and path can be changed with [HTTP
+settings](https://prosody.im/doc/http), for example like:
-In 0.8 and older 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.
+``` {.lua}
+ http_paths = {
+ pastebin = "/$host-paste";
+ }
+```
# Discovery
@@ -82,27 +84,16 @@ The line and character tresholds are adv
pastebin_line_threshold The maximum number of lines a message may have before it is sent to the pastebin. (default 4 lines)
pastebin_trigger A string of characters (e.g. "!paste ") which if detected at the start of a message, always sends the message to the pastebin, regardless of length. (default: not set)
pastebin_expire_after Number of hours after which to expire (remove) a paste, defaults to 24. Set to 0 to store pastes permanently on disk.
- pastebin_ports List of ports to run the HTTP server on, same format as mod_httpserver's http_ports[^1]
- pastebin_url Base URL to display for pastebin links, must end with / and redirect to Prosody's built-in HTTP server[^2]
# Compatibility
- ------ -------
- trunk Works
+ ------ ---------------------
+ trunk Works as of 25-06-13
+ 13 Works
0.12 Works
- 0.11 Works
- 0.10 Works
- 0.9 Works
- 0.8 Works
- ------ -------
+ ------ ---------------------
# Todo
- Maximum paste length
- Web interface to submit pastes?
-
-[^1]: As of Prosody 0.9, `pastebin_ports` is replaced by `http_ports`,
- see [Prosody HTTP server documentation](https://prosody.im/doc/http)
-
-[^2]: See also
- [http_external_url](https://prosody.im/doc/http#external_url)
| author | Menel <menel@snikket.de> |
|---|---|
| date | Fri, 13 Jun 2025 11:39:58 +0200 |
| parents | fe081789f7b5 |
| children | 8d75d5f82a83 |
| rev | line source |
|---|---|
| 1889 | 1 --- |
| 2 summary: External Service Discovery | |
| 3 ... | |
| 4 | |
| 5 Introduction | |
| 6 ============ | |
| 7 | |
| 8 This module adds support for [XEP-0215: External Service Discovery], | |
| 9 which lets Prosody advertise non-XMPP services. | |
| 10 | |
| 11 Configuration | |
| 12 ============= | |
| 13 | |
| 14 Example services from the XEP: | |
| 15 | |
| 16 ``` {.lua} | |
| 17 modules_enabled = { | |
| 18 -- other modules ... | |
| 19 "extdisco"; | |
| 20 } | |
| 21 | |
| 22 external_services = { | |
| 23 ["stun.shakespeare.lit"] = { | |
| 24 port="9998"; | |
| 25 transport="udp"; | |
| 26 type="stun"; | |
| 27 }; | |
| 28 ["relay.shakespeare.lit"] = { | |
| 29 password="jj929jkj5sadjfj93v3n"; | |
| 30 port="9999"; | |
| 31 transport="udp"; | |
| 32 type="turn"; | |
| 33 username="nb78932lkjlskjfdb7g8"; | |
| 34 }; | |
| 35 ["192.0.2.1"] = { | |
| 36 port="8888"; | |
| 37 transport="udp"; | |
| 38 type="stun"; | |
| 39 }; | |
| 40 ["192.0.2.1"] = { | |
| 41 port="8889"; | |
| 42 password="93jn3bakj9s832lrjbbz"; | |
| 43 transport="udp"; | |
| 44 type="turn"; | |
| 45 username="auu98sjl2wk3e9fjdsl7"; | |
| 46 }; | |
| 47 ["ftp.shakespeare.lit"] = { | |
| 48 name="Shakespearean File Server"; | |
| 49 password="guest"; | |
| 50 port="20"; | |
| 51 transport="tcp"; | |
| 52 type="ftp"; | |
| 53 username="guest"; | |
| 54 }; | |
| 55 } | |
| 56 ``` | |
|
4020
4b47c8eeca22
mod_extdisco, mod_turncredentials: Note incompatibility in readmes.
tastytea <tastytea@tastytea.de>
parents:
1889
diff
changeset
|
57 |
|
4b47c8eeca22
mod_extdisco, mod_turncredentials: Note incompatibility in readmes.
tastytea <tastytea@tastytea.de>
parents:
1889
diff
changeset
|
58 Compatibility |
|
4b47c8eeca22
mod_extdisco, mod_turncredentials: Note incompatibility in readmes.
tastytea <tastytea@tastytea.de>
parents:
1889
diff
changeset
|
59 ============= |
|
4b47c8eeca22
mod_extdisco, mod_turncredentials: Note incompatibility in readmes.
tastytea <tastytea@tastytea.de>
parents:
1889
diff
changeset
|
60 |
|
4b47c8eeca22
mod_extdisco, mod_turncredentials: Note incompatibility in readmes.
tastytea <tastytea@tastytea.de>
parents:
1889
diff
changeset
|
61 Incompatible with |
|
4b47c8eeca22
mod_extdisco, mod_turncredentials: Note incompatibility in readmes.
tastytea <tastytea@tastytea.de>
parents:
1889
diff
changeset
|
62 [mod_turncredentials](https://modules.prosody.im/mod_turncredentials). |
