From 299eee98cef6821974a223382dfb80007dfdd1db Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Tue, 13 Dec 2022 19:49:59 +0000 Subject: [PATCH] prosody: Add `privilege` module for components This module will be inactive while dynamic `VirtualHost` configuration is being sorted out, but should nevertheless help in testing. --- service/prosody/container/config/prosody.cfg.lua | 1 + service/prosody/service/component.cfg.lua.template | 1 + 2 files changed, 2 insertions(+) diff --git a/service/prosody/container/config/prosody.cfg.lua b/service/prosody/container/config/prosody.cfg.lua index e8a990b..af698d6 100644 --- a/service/prosody/container/config/prosody.cfg.lua +++ b/service/prosody/container/config/prosody.cfg.lua @@ -53,6 +53,7 @@ modules_enabled = { "mam"; -- Store messages in an archive and allow users to access it "smacks"; -- Stream management for resuming dropped connections. "csi_simple"; -- Enables simple traffic optimisation for clients that have reported themselves as inactive. + "privilege"; -- Allows components to have privileged access to the XMPP server. -- Push notifications "cloud_notify"; -- Support for push notifications. diff --git a/service/prosody/service/component.cfg.lua.template b/service/prosody/service/component.cfg.lua.template index cd90d67..ed06645 100644 --- a/service/prosody/service/component.cfg.lua.template +++ b/service/prosody/service/component.cfg.lua.template @@ -1,2 +1,3 @@ Component "${PROSODY_COMPONENT_NAME}" component_secret = "${PROSODY_COMPONENT_PASSWORD}" + modules_enabled = {"privilege"}