Software / code / prosody-modules
Annotate
mod_s2soutinjection/README.markdown @ 5307:2bb27dfd10d5
mod_client_management: Use grant id from key
This is a minor tweak - it's faster and preserves compatibility with older
data formats (that we don't necessarily want to be compatible with, but some
of us have messy data stores and it pays to be a little more robust).
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 06 Apr 2023 15:20:25 +0100 |
| parent | 4931:f4a9e804c457 |
| rev | line source |
|---|---|
| 1999 | 1 --- |
| 2 summary: S2S connection override | |
| 3 ... | |
| 4 | |
| 5 # Introduction | |
| 6 | |
| 7 This module is similar to [mod\_srvinjection] but less of an hack. | |
| 8 | |
| 9 # Configuration | |
| 10 | |
| 11 ``` lua | |
| 12 -- In the global section | |
| 13 | |
| 14 modules_enabled = { | |
| 15 --- your other modules | |
| 16 "s2soutinjection"; | |
| 17 } | |
| 18 | |
|
4931
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
1999
diff
changeset
|
19 -- targets must be IPs, not hostnames |
| 1999 | 20 s2s_connect_overrides = { |
| 21 -- This one will use the default port, 5269 | |
|
4931
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
1999
diff
changeset
|
22 ["example.com"] = "1.2.3.4"; |
| 1999 | 23 |
| 24 -- To set a different port: | |
|
4931
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
1999
diff
changeset
|
25 ["another.example"] = { "127.0.0.1", 9999 }; |
| 1999 | 26 } |
| 27 ``` | |
| 28 | |
| 29 # Compatibility | |
| 30 | |
|
4931
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
1999
diff
changeset
|
31 Requires 0.9.x or later. Tested on 0.12.0 |