From 8342cee86a8195a898cfdff443156e53ad7ccbbe Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 21 Sep 2025 22:13:14 +0100 Subject: Create privileged transport components This commit allows transport servers to define the relevant components on the XMPP server. Transports are configured by adding the following config to the inventory's variables: transports: - subdomain: a-example-legacy-network secret: a-long-randomly-generated-secret - subdomain: another-example-legacy-network secret: another-long-randomly-generated-secret These are iterated over and a privileged component is created for each. --- files/prosody.cfg.lua.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'files/prosody.cfg.lua.j2') diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 index ae00b46..5f76dc8 100644 --- a/files/prosody.cfg.lua.j2 +++ b/files/prosody.cfg.lua.j2 @@ -73,6 +73,11 @@ modules_enabled = { "s2s_bidi"; {% endif %} +{% if is_transport_server %} + -- Privileged components + "privilege"; +{% endif %} + } modules_disabled = { -- cgit v1.2.3