annotate mod_pubsub_serverinfo/README.md @ 6371:caaa9ea58bec

mod_auth_sql: Document database table in README
author Christian Weiske <cweiske@cweiske.de>
date Tue, 27 Jan 2026 21:12:21 +0100
parents 1d48c75c8200
children 13c61a068c71
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5801
73887dcb2129 mod_pubsub_serverinfo: New module that uses pub/sub to make accessible server info
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents:
diff changeset
1 ---
73887dcb2129 mod_pubsub_serverinfo: New module that uses pub/sub to make accessible server info
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents:
diff changeset
2 labels:
73887dcb2129 mod_pubsub_serverinfo: New module that uses pub/sub to make accessible server info
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents:
diff changeset
3 - 'Statistics'
73887dcb2129 mod_pubsub_serverinfo: New module that uses pub/sub to make accessible server info
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents:
diff changeset
4 ...
73887dcb2129 mod_pubsub_serverinfo: New module that uses pub/sub to make accessible server info
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents:
diff changeset
5
5869
faf1f1c833e8 mod_pubsub_serverinfo: update reference to XEP.
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5841
diff changeset
6 Exposes server information over Pub/Sub per [XEP-0485: PubSub Server Information](https://xmpp.org/extensions/xep-0485.html).
5801
73887dcb2129 mod_pubsub_serverinfo: New module that uses pub/sub to make accessible server info
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents:
diff changeset
7
5807
f08818b8b87d mod_pubsub_serverinfo: Update documentation
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5806
diff changeset
8 The module announces support (used to 'opt-in', per the XEP) and publishes the name of the local domain via a Pub/Sub node. The published data
f08818b8b87d mod_pubsub_serverinfo: Update documentation
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5806
diff changeset
9 will contain a 'remote-domain' element for inbound and outgoing s2s connections. These elements will be named only when the remote domain announces
f08818b8b87d mod_pubsub_serverinfo: Update documentation
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5806
diff changeset
10 support ('opts in') too.
5803
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
11
5841
904b226fddf1 mod_pubsub_serverinfo: Update README to link to known issues
Matthew Wild <mwild1@gmail.com>
parents: 5811
diff changeset
12 **Known issues:**
904b226fddf1 mod_pubsub_serverinfo: Update README to link to known issues
Matthew Wild <mwild1@gmail.com>
parents: 5811
diff changeset
13
5963
c61a82f80e57 mod_pubsub_serverinfo: Reference workaround for issue #1841
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5869
diff changeset
14 - [Issue #1841](https://issues.prosody.im/1841): In Prosody 0.12, this module conflicts with mod_server_contact_info (both will run, but it may affect the ability of some implementations to read the server/contact information provided). To work around this issue, the [mod_server_contact_info](https://modules.prosody.im/mod_server_contact_info) community module can be used.
5841
904b226fddf1 mod_pubsub_serverinfo: Update README to link to known issues
Matthew Wild <mwild1@gmail.com>
parents: 5811
diff changeset
15
5803
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
16 Configuration
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
17 =============
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
18
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
19 ### Loading the module
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
20
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
21 Simply enable this module on the hosts/components that you want to publish information for. Note that, as with most other modules, adding it to the
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
22 global `modules_enabled` will automatically load it on all VirtualHosts on your server:
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
23
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
24 ```
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
25 modules_enabled = {
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
26 ...
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
27 "pubsub_serverinfo";
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
28 ...
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
29 }
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
30 ```
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
31
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
32 Note that adding it to the global modules_enabled won't load it on any Component hosts on your server. If you want to publish info about those, you
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
33 also need to add it to a `modules_enabled` setting under that Component, for example:
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
34
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
35 ```
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
36 Component "rooms.example.com" "muc"
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
37 modules_enabled = {
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
38 "pubsub_serverinfo";
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
39 }
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
40 ```
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
41
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
42 ### Specifying the publish destination
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
43
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
44 This module publishes information to any XMPP pubsub service, which could be local (i.e. served by the same Prosody instance) or remote (via
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
45 server-to-server connections).
5803
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
46
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
47 The destination to publish to is controlled by two settings:
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
48
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
49 - `pubsub_serverinfo_service`
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
50 - `pubsub_serverinfo_node`
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
51
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
52 As usual, these options can be set in the global section (inherited by all hosts/component) or underneath each VirtualHost/Component to apply
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
53 to that VirtualHost/Component only.
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
54
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
55 If unset, `pubsub_serverinfo_service` will default to `pubsub.<domain>` - that is, it will try to publish to a pubsub service that is on the
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
56 `pubsub` subdomain of the host it is publishing about. For example, if you load the module on `example.com` it will default to publishing to
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
57 `pubsub.example.com`. If this is incorrect, you should set `pubsub_serverinfo_service` to a valid pubsub service address.
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
58
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
59 The `pubsub_serverinfo_node` option defaults to `"serverinfo"`. Note that if you have multiple hosts publishing to the same pubsub service, you
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
60 *must* set this to something unique for each one, otherwise they will overwrite each other.
5803
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
61
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
62 ### Pubsub service configuration
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
63
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
64 As mentioned, you can publish to a local or remote pubsub service. The publish commands will come from the reporting domain(s) where the module
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
65 is loaded (e.g. `example.com`), so those domains must be permitted to publish to the destination pubsub service you have chosen.
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
66
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
67 If you want to run a local pubsub service in the same Prosody instance, you can use this configuration:
5803
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
68
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
69 ```
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
70 Component "pubsub.example.com" "pubsub"
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
71 -- Grant permission for example.com to publish here, by simply making it
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
72 -- an admin:
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
73 admins = { "example.org" }
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
74 ```
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
75
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
76 ### Other settings
5803
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
77
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
78 To prevent a surplus of event notifications, this module will only publish new data after a certain period of time has expired. The default duration
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
79 is 300 seconds (5 minutes). To change this simply put in the config:
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
80
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
81 ```
5803
f55e65315ba0 mod_pubsub_serverinfo: implemented all basic features
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5801
diff changeset
82 pubsub_serverinfo_publication_interval = 180 -- or any other number of seconds
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
83 ```
5805
55b99f593c3a mod_pubsub_serverinfo: Disco/info cache TTL should be configurable
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5803
diff changeset
84
55b99f593c3a mod_pubsub_serverinfo: Disco/info cache TTL should be configurable
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5803
diff changeset
85 To detect if remote domains allow their domain name to be included in the data that this module publishes, this module will perform a service
55b99f593c3a mod_pubsub_serverinfo: Disco/info cache TTL should be configurable
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5803
diff changeset
86 discovery request to each remote domain. To prevent a continuous flood of disco/info requests, the response to these requests is cached. By default,
55b99f593c3a mod_pubsub_serverinfo: Disco/info cache TTL should be configurable
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5803
diff changeset
87 a cached value will remain in cache for one hour. This duration can be modified by adding this configuration option:
55b99f593c3a mod_pubsub_serverinfo: Disco/info cache TTL should be configurable
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5803
diff changeset
88
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
89 ```
5805
55b99f593c3a mod_pubsub_serverinfo: Disco/info cache TTL should be configurable
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5803
diff changeset
90 pubsub_serverinfo_cache_ttl = 1800 -- or any other number of seconds
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
91 ```
5806
d4612e7f6724 mod_pubsub_serverinfo: Added 'Known Issues' section
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5805
diff changeset
92
6031
25b091cbb471 mod_pubsub_serverinfo: Allow including the count of active users in the published info
Matthew Wild <mwild1@gmail.com>
parents: 5975
diff changeset
93 To include the count of active (within the past 30 days) users:
25b091cbb471 mod_pubsub_serverinfo: Allow including the count of active users in the published info
Matthew Wild <mwild1@gmail.com>
parents: 5975
diff changeset
94
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
95 ```
6031
25b091cbb471 mod_pubsub_serverinfo: Allow including the count of active users in the published info
Matthew Wild <mwild1@gmail.com>
parents: 5975
diff changeset
96 pubsub_serverinfo_publish_user_count = true
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
97 ```
6031
25b091cbb471 mod_pubsub_serverinfo: Allow including the count of active users in the published info
Matthew Wild <mwild1@gmail.com>
parents: 5975
diff changeset
98
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
99 Enabling this option will automatically load mod_measure_active_users, which must be installed.
6031
25b091cbb471 mod_pubsub_serverinfo: Allow including the count of active users in the published info
Matthew Wild <mwild1@gmail.com>
parents: 5975
diff changeset
100
5811
ce8f0e458ffa mod_pubsub_serverinfo: Add node on compatibility
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5808
diff changeset
101 Compatibility
ce8f0e458ffa mod_pubsub_serverinfo: Add node on compatibility
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5808
diff changeset
102 =============
ce8f0e458ffa mod_pubsub_serverinfo: Add node on compatibility
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5808
diff changeset
103
ce8f0e458ffa mod_pubsub_serverinfo: Add node on compatibility
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5808
diff changeset
104 Incompatible with 0.11 or lower.
ce8f0e458ffa mod_pubsub_serverinfo: Add node on compatibility
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5808
diff changeset
105
5806
d4612e7f6724 mod_pubsub_serverinfo: Added 'Known Issues' section
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5805
diff changeset
106 Known Issues / TODOs
d4612e7f6724 mod_pubsub_serverinfo: Added 'Known Issues' section
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5805
diff changeset
107 ====================
d4612e7f6724 mod_pubsub_serverinfo: Added 'Known Issues' section
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5805
diff changeset
108
5808
2465d5191ae9 mod_pubsub_serverinfo: Consider sibling vhosts 'connected'
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5807
diff changeset
109 The reported data does not contain the optional 'connection' child elements. These can be used to describe the direction of a connection.
2465d5191ae9 mod_pubsub_serverinfo: Consider sibling vhosts 'connected'
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 5807
diff changeset
110
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
111 Common Configuration Issues
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
112 ===========================
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
113
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
114 ### Incorrect permissions on pubsub service
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
115
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
116 The XMPP domain itself (for example, `example.org`) must be allowed to publish to the chosen pubsub service, e.g. by making it an admin of that service.
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
117 Sometimes people mistakenly assume a user JID (e.g., `admin@example.org`) should be an admin. See the example above for correct configuration.
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
118
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
119 ### Enabling the module on the wrong host
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
120
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
121 `mod_pubsub_serverinfo` must be enabled globally or within a virtual host, **not inside the PubSub component** (unless you want to publish info about that
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
122 component). Generally you are instructing other hosts to publish data to the pubsub service, not extending the pubsub service itself.
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
123
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
124 Additionally, be aware that adding mod_pubsub_serverinfo to the global modules_enabled will not load it on any Components by default, you must still specify
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
125 that explicitly (see the earlier configuration example).
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
126
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
127 ### Conditional dependency on `mod_measure_active_users`
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
128
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
129 Publishing user counts requires `mod_measure_active_users`. This module will be loaded automatically if user count publication is enabled, but it must be installed on the system for this to succeed.
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
130
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
131 ### DNS records for the PubSub service
6355
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
132
77d565a6df4e mod_pubsub_serverinfo: add 'common configuration issues' to readme
Guus der Kinderen <guus.der.kinderen@gmail.com>
parents: 6031
diff changeset
133 External servers must be able to connect to the PubSub service. Ensure the hostname of the PubSub service has appropriate A/AAAA and SRV records so remote servers can discover and reach the service.
6362
1d48c75c8200 mod_pubsub_serverinfo: Update README with some clarifications/improvements
Matthew Wild <mwild1@gmail.com>
parents: 6355
diff changeset
134 You can use the 'prosodyctl check' command to help with this.