annotate mod_component_client/README.markdown @ 5283:cc89c97befe7
mod_http_admin_api: Tweak token session to please module:may()
module:may() checks for type == "c2s", but mod_tokenauth does not
currently include that or most common session properties.
Fixes a traceback resulting from a different code path where
module:may() tries to index event.stanza, which does not exist for http
events.
author |
Kim Alvefur <zash@zash.se> |
date |
Tue, 28 Mar 2023 20:45:11 +0200 |
parents |
35ae59a8196d |
children |
|
rev |
line source |
2323
|
1 Introduction |
|
2 ============ |
|
3 |
|
4 This module turns Prosody hosts into components of other XMPP servers. |
|
5 |
|
6 Configuration |
|
7 ============= |
|
8 |
|
9 Example configuration: |
|
10 |
|
11 ``` {.lua} |
|
12 VirtualHost "component.example.com" |
|
13 modules_enabled = { "component_client" } |
|
14 component_client = { |
|
15 host = "localhost"; |
|
16 port = 5347; |
|
17 secret = "hunter2"; |
|
18 } |
|
19 ``` |