From 2f6bda6ad711c63a2a2161dc7128edb1ca7d9127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Aim=C3=A9e=20Smiseth?= <51710585+SaraSmiseth@users.noreply.github.com> Date: Sun, 31 May 2020 13:27:30 +0200 Subject: [PATCH] add server_contact_info module with 05-server_contact_info.cfg.lua --- conf.d/01-modules.cfg.lua | 2 ++ conf.d/05-server_contact_info.cfg.lua | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 conf.d/05-server_contact_info.cfg.lua diff --git a/conf.d/01-modules.cfg.lua b/conf.d/01-modules.cfg.lua index 045e11b..58fec1c 100644 --- a/conf.d/01-modules.cfg.lua +++ b/conf.d/01-modules.cfg.lua @@ -42,6 +42,8 @@ modules_enabled = { --"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. + + "server_contact_info"; -- This module lets you advertise various contact addresses for your XMPP service via XEP-0157. }; -- These modules are auto-loaded, but should you want diff --git a/conf.d/05-server_contact_info.cfg.lua b/conf.d/05-server_contact_info.cfg.lua new file mode 100644 index 0000000..aecbd37 --- /dev/null +++ b/conf.d/05-server_contact_info.cfg.lua @@ -0,0 +1,8 @@ +contact_info = { + abuse = { "xmpp:abuse@" .. domain }; + admin = { "xmpp:admin@" .. domain }; + feedback = { "xmpp:feedback@" .. domain }; + sales = { "xmpp:sales@" .. domain }; + security = { "xmpp:security@" .. domain }; + support = { "xmpp:support@" .. domain }; +}