mod_s2s: Add a Direct TLS listener

Mirroring the c2s 'direct_tls'. Naming things is hard.

direct_tls_s2s_ports = { 5269+1 }
This commit is contained in:
Kim Alvefur 2021-08-10 20:55:43 +02:00
parent c42a125cc7
commit 702d8a9ab4
3 changed files with 16 additions and 2 deletions

View file

@ -967,3 +967,17 @@ module:provides("net", {
};
});
module:provides("net", {
name = "direct_tls_s2s";
listener = listener;
encryption = "ssl";
ssl_config = {
verify = { "peer", "client_once", };
};
multiplex = {
protocol = "xmpp-server";
pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>";
};
});