Enable MAM and PubSub

This commit is contained in:
Oliver Hattshire 2025-10-27 13:48:54 -03:00
parent 61c5eb5985
commit 251fa2147f
3 changed files with 6 additions and 4 deletions

View file

@ -30,8 +30,8 @@ services:
- ADMIN_EMAIL=${ADMIN_EMAIL} - ADMIN_EMAIL=${ADMIN_EMAIL}
- DOMAIN_NAME=${DOMAIN_NAME} - DOMAIN_NAME=${DOMAIN_NAME}
- VIRTUAL_HOST=u.${DOMAIN_NAME} - VIRTUAL_HOST=u.${DOMAIN_NAME},pubsub.${DOMAIN_NAME}
- LETSENCRYPT_HOST=u.${DOMAIN_NAME} - LETSENCRYPT_HOST=u.${DOMAIN_NAME},pubsub.${DOMAIN_NAME},${DOMAIN_NAME}
env_file: env_file:
- slidge.env - slidge.env

View file

@ -7,7 +7,7 @@ then
message = "outgoing"; message = "outgoing";
iq = { iq = {
["http://jabber.org/protocol/pubsub"] = "both"; ["http://jabber.org/protocol/pubsub"] = "both";
["http://jabber.org/protocol/pubsub#owner"] = "both"; ["http://jabber.org/protocol/pubsub#owner"] = "set";
}; };
} }
} }
@ -15,6 +15,7 @@ then
{ "whatsapp", "Whatsapp gateway" }; { "whatsapp", "Whatsapp gateway" };
} }
Component ("u."..ENV_DOMAIN_NAME) "http_file_share" Component ("u."..ENV_DOMAIN_NAME) "http_file_share"
Component ("pubsub."..ENV_DOMAIN_NAME) "pubsub"
Component "whatsapp" Component "whatsapp"
component_secret = ENV_SLIDGE_SECRET or "" component_secret = ENV_SLIDGE_SECRET or ""
modules_enabled = {"privilege"} modules_enabled = {"privilege"}

View file

@ -32,7 +32,7 @@ modules_enabled = {
"time"; -- Let others know the time here on this server "time"; -- Let others know the time here on this server
"uptime"; -- Report how long server has been running "uptime"; -- Report how long server has been running
"version"; -- Replies to server version requests "version"; -- Replies to server version requests
--"mam"; -- Store recent messages to allow multi-device synchronization "mam"; -- Store recent messages to allow multi-device synchronization
--"turn_external"; -- Provide external STUN/TURN service for e.g. audio/video calls --"turn_external"; -- Provide external STUN/TURN service for e.g. audio/video calls
-- Admin interfaces -- Admin interfaces
@ -59,6 +59,7 @@ modules_enabled = {
--"welcome"; -- Welcome users who register accounts --"welcome"; -- Welcome users who register accounts
"http_files"; "http_files";
"privilege"; "privilege";
"pubsub";
} }
-- modules_disabled = {} -- modules_disabled = {}