aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-05-11 14:17:12 +0100
committerMatthew Wild <mwild1@gmail.com>2021-05-11 14:17:12 +0100
commit6d15e34180d46e5c9914be744870d14361fd010c (patch)
treec52fc697211f88047702643e94d088608ec52ef4
parent3fd3d2cd99284e5641084c5acb485028de535a05 (diff)
downloadprosody-6d15e34180d46e5c9914be744870d14361fd010c.tar.gz
prosody-6d15e34180d46e5c9914be744870d14361fd010c.zip
prosody.cfg.lua.dist: Enable rate limits by default
-rw-r--r--prosody.cfg.lua.dist13
1 files changed, 12 insertions, 1 deletions
diff --git a/prosody.cfg.lua.dist b/prosody.cfg.lua.dist
index f7f7b731..9ed17d56 100644
--- a/prosody.cfg.lua.dist
+++ b/prosody.cfg.lua.dist
@@ -51,6 +51,7 @@ modules_enabled = {
"blocklist"; -- Allow users to block communications with other users
"vcard4"; -- User profiles (stored in PEP)
"vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard
+ "limits"; -- Enable bandwidth limiting for XMPP connections
-- Nice to have
"version"; -- Replies to server version requests
@@ -71,7 +72,6 @@ modules_enabled = {
--"http_files"; -- Serve static files from a directory over HTTP
-- Other specific functionality
- --"limits"; -- Enable bandwidth limiting for XMPP connections
--"groups"; -- Shared roster support
--"server_contact_info"; -- Publish contact information for this service
--"announce"; -- Send announcement to all online users
@@ -121,6 +121,17 @@ s2s_secure_auth = false
--s2s_secure_domains = { "jabber.org" }
+-- Enable rate limits for incoming client and server connections
+
+limits = {
+ c2s = {
+ rate = "10kb/s";
+ };
+ s2sin = {
+ rate = "30kb/s";
+ };
+}
+
-- Select the authentication backend to use. The 'internal' providers
-- use Prosody's configured data storage to store the authentication data.