prosody: Pin and fix module definitions

Community modules were not pinned, which could lead to breakage, and
enabled server modules have been cleaned up.
This commit is contained in:
Alex Palaistras 2022-01-14 22:40:35 +00:00
parent 110f313660
commit a9e0e87465
2 changed files with 11 additions and 21 deletions

View File

@ -1,5 +1,6 @@
FROM docker.io/debian:bullseye-slim
ARG VERSION=0.11.12
ARG MODULES_VERSION=bd0a1f917d98
RUN apt-get update -y && apt-get install -y --no-install-recommends \
curl mercurial gnupg ca-certificates apt-transport-https netcat-traditional
@ -14,7 +15,7 @@ RUN echo "deb https://packages.prosody.im/debian bullseye main" > /etc/apt/sourc
lua-dbi-mysql lua-event lua-zlib lua-sec lua-luaossl lua-bitop prosody=${VERSION}*
RUN mkdir -p /usr/lib/prosody/community-modules && \
hg clone https://hg.prosody.im/prosody-modules /usr/lib/prosody/community-modules
hg clone --rev ${MODULES_VERSION} https://hg.prosody.im/prosody-modules /usr/lib/prosody/community-modules
COPY container/config /etc/prosody
RUN prosodyctl check config

View File

@ -44,7 +44,6 @@ modules_enabled = {
-- Not essential, but recommended
"carbons"; -- Keep multiple clients in sync
"pep"; -- Enables users to publish their mood, activity, playing music and more
"private"; -- Private XML storage (for room bookmarks, etc.)
"blocklist"; -- Allow users to block communications with other users
"vcard4"; -- Allow users to set vCards in v4 format.
"vcard_legacy"; -- Allow users to set vCards in legacy formats.
@ -61,41 +60,31 @@ modules_enabled = {
"csi_simple"; -- Enables simple traffic optimisation for clients that have reported themselves as inactive.
"filter_chatstates"; -- Don't send chat state notifications when client is inactive.
"throttle_presence"; -- Don't send presence information when client is inactive.
-- Push notifications
"cloud_notify"; -- Support for push notifications.
"cloud_notify_encrypted"; -- Support for experimental encrypted push notifications.
"cloud_notify_priority_tag"; -- Support for the experimental Priority of Notifications specification.
"cloud_notify_filters"; -- Support for experimental push notification filtering.
"cloud_notify_extensions"; -- Additional, non-standard extensions for push notification support.
-- Spam/abuse management
"spam_reporting"; -- Allow users to report spam/abuse
"watch_spam_reports"; -- Alert admins of spam/abuse reports by users
-- Admin interfaces
--"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
"admin_telnet"; -- Opens telnet console interface on localhost port 5582
-- HTTP modules
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
"websocket"; -- XMPP over WebSockets
-- "http_files"; -- Serve static files from a directory over HTTP
-- Other specific functionality
--"limits"; -- Enable bandwidth limiting for XMPP connections
--"groups"; -- Shared roster support
--"server_contact_info"; -- Publish contact information for this service
--"announce"; -- Send announcement to all online users
--"welcome"; -- Welcome users who register accounts
--"watchregistrations"; -- Alert admins of registrations
--"motd"; -- Send a message to users when they log in
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
"conversejs"; -- Web-based frontend for XMPP
"bookmarks"; -- Next-generation group-chat bookmarks
"turncredentials"; -- Connect to TURN/STUN server.
"bookmarks2"; -- Next-generation group-chat bookmarks
"turncredentials"; -- Connect to TURN/STUN server
}
-- These modules are auto-loaded, but should you want
-- to disable them then uncomment them here:
modules_disabled = {
--"offline"; -- Store offline messages
--"c2s"; -- Handle client connections
--"s2s"; -- Handle server-to-server connections
"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
}