author | Matthew Wild <mwild1@gmail.com> |
Tue, 16 Apr 2024 12:41:52 +0100 | |
changeset 5888 | 49b0873932ca |
parent 4935 | f4a9e804c457 |
permissions | -rw-r--r-- |
2003 | 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 |
||
4935
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
2003
diff
changeset
|
19 |
-- targets must be IPs, not hostnames |
2003 | 20 |
s2s_connect_overrides = { |
21 |
-- This one will use the default port, 5269 |
|
4935
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
2003
diff
changeset
|
22 |
["example.com"] = "1.2.3.4"; |
2003 | 23 |
|
24 |
-- To set a different port: |
|
4935
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
2003
diff
changeset
|
25 |
["another.example"] = { "127.0.0.1", 9999 }; |
2003 | 26 |
} |
27 |
``` |
|
28 |
||
29 |
# Compatibility |
|
30 |
||
4935
f4a9e804c457
mod_s2soutinjection: Rewrite based on mod_onions for 0.12 compat (thanks Zash)
moparisthebest <admin@moparisthebest.com>
parents:
2003
diff
changeset
|
31 |
Requires 0.9.x or later. Tested on 0.12.0 |