Comparison

mod_s2sout_override/README.md @ 5487:6cf2f32dbf40

mod_s2sout_override: Add support for Direct TLS Well that was easy
author Kim Alvefur <zash@zash.se>
date Wed, 24 May 2023 16:34:35 +0200
parent 5486:71243bedb2b0
child 5631:b87a23b45725
comparison
equal deleted inserted replaced
5486:71243bedb2b0 5487:6cf2f32dbf40
9 9
10 Enable the module as usual, then specify a map of XMPP remote hostnames 10 Enable the module as usual, then specify a map of XMPP remote hostnames
11 to URIs like `"tcp://host.example:port"`, to have Prosody connect there 11 to URIs like `"tcp://host.example:port"`, to have Prosody connect there
12 instead of doing normal DNS SRV resolution. 12 instead of doing normal DNS SRV resolution.
13 13
14 Currently only the `tcp://` scheme is supported. A future version could 14 Currently supported schemes are `tcp://` and `tls://`. A future version
15 support more methods including Direct TLS, alternate SRV lookup targets 15 could support more methods including alternate SRV lookup targets or
16 or even UNIX sockets. 16 even UNIX sockets.
17
18 URIs with IP addresses like `tcp://127.0.0.1:9999` will bypass A/AAAA
19 DNS lookups.
17 20
18 ```lua 21 ```lua
19 -- Global section 22 -- Global section
20 modules_enabled = { 23 modules_enabled = {
21 -- other global modules 24 -- other global modules
23 } 26 }
24 27
25 s2sout_override = { 28 s2sout_override = {
26 ["example.com"] = "tcp://other.host.example:5299"; 29 ["example.com"] = "tcp://other.host.example:5299";
27 ["xmpp.example.net"] = "tcp://localhost:5999"; 30 ["xmpp.example.net"] = "tcp://localhost:5999";
31 ["secure.example"] = = "tls://127.0.0.1:5270";
28 } 32 }
29 ``` 33 ```
30 34
31 # Compatibility 35 # Compatibility
32 36