1786
|
1 |
#summary Mark some network interfaces (e.g. loopback/LAN) as always secure |
|
2 |
#labels Stage-Beta |
|
3 |
|
|
4 |
= Introduction = |
|
5 |
|
|
6 |
Sometimes you might run clients without encryption on the same machine or LAN as Prosody - and you want Prosody to treat them as secure (e.g. allowing plaintext authentication) even though they are not encrypted. |
|
7 |
|
|
8 |
This module allows you to tell Prosody which of the current server's interfaces (IP addresses) that you consider to be on secure networks. |
|
9 |
|
|
10 |
|
|
11 |
= Configuration = |
|
12 |
|
|
13 |
Configuration is simple, just load the module like any other by adding it to your modules_enabled list: |
|
14 |
|
|
15 |
{{{ |
|
16 |
modules_enabled = { |
|
17 |
... |
|
18 |
"secure_interfaces"; |
|
19 |
... |
|
20 |
} |
|
21 |
}}} |
|
22 |
|
|
23 |
Then set the list of secure interfaces (just make sure it is set in the global section of your config file, and *not* under a VirtualHost or Component): |
|
24 |
|
|
25 |
{{{ |
|
26 |
secure_interfaces = { "127.0.0.1", "::1", "192.168.1.54" } |
|
27 |
}}} |
|
28 |
|
|
29 |
= Compatibility = |
|
30 |
|| 0.9 || Works || |
|
31 |
|| 0.8 || Unknown || |
|
32 |
|| trunk || Works || |