Hello @all,
need some advice how/where to set the DTLS ports for c2s and s2s in prosody's (0.12.5) configuration file.
For the s2s configuration block I have the following default in my prosody.cfg.lua
-- 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, etc.
}
----------------------------------------------------------------------------------
-- Server-to-server authentication
-- Require valid certificates for server-to-server connections?
-- If false, other methods such as dialback (DNS) may be used instead.
s2s_secure_auth = true
I am assuming that I have to place the entry for the DTLS port under the above line, but not sure how. Which one of the 2 examples? Are they even correct ?
sample A:
s2s_direct_tls_ports
= "5270"
sample B:
s2s_direct_tls_ports
= { "5270" }
And for c2s
c2s_direct_tls_ports
= "5223"
or
c2s_direct_tls_ports
= { "5223" }
If I take now one of each of the samples, the end of the mentioned block from above would look like
s2s_secure_auth = true
s2s_direct_tls_ports
= "5270"
c2s_direct_tls_ports
= "5223"
Is my assumption correct? Any help very much appreciated.
Thank you