|
@@ -43,6 +43,7 @@ modules_enabled = {
|
|
-- Not essential, but recommended
|
|
-- Not essential, but recommended
|
|
"private"; -- Private XML storage (for room bookmarks, etc.)
|
|
"private"; -- Private XML storage (for room bookmarks, etc.)
|
|
"vcard"; -- Allow users to set vCards
|
|
"vcard"; -- Allow users to set vCards
|
|
|
|
+ "limits"; -- Enable bandwidth limiting for XMPP connections
|
|
|
|
|
|
-- These are commented by default as they have a performance impact
|
|
-- These are commented by default as they have a performance impact
|
|
--"privacy"; -- Support privacy lists
|
|
--"privacy"; -- Support privacy lists
|
|
@@ -93,6 +94,16 @@ allow_registration = false;
|
|
|
|
|
|
daemonize = false;
|
|
daemonize = false;
|
|
|
|
|
|
|
|
+-- Enable rate limits for incoming client and server connections
|
|
|
|
+limits = {
|
|
|
|
+ c2s = {
|
|
|
|
+ rate = "10kb/s";
|
|
|
|
+ };
|
|
|
|
+ s2sin = {
|
|
|
|
+ rate = "30kb/s";
|
|
|
|
+ };
|
|
|
|
+}
|
|
|
|
+
|
|
pidfile = "/config/data/prosody.pid";
|
|
pidfile = "/config/data/prosody.pid";
|
|
|
|
|
|
-- Force clients to use encrypted connections? This option will
|
|
-- Force clients to use encrypted connections? This option will
|