Software /
code /
prosody
Comparison
prosody.cfg.lua.dist @ 11553:b0d8920ed5e5 0.11
prosody.cfg.lua.dist: Enable rate limits by default
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 11 May 2021 14:17:12 +0100 |
parent | 9637:b8301ba2c437 |
child | 11560:3bbb1af92514 |
comparison
equal
deleted
inserted
replaced
11552:d4b735272a61 | 11553:b0d8920ed5e5 |
---|---|
49 "pep"; -- Enables users to publish their avatar, mood, activity, playing music and more | 49 "pep"; -- Enables users to publish their avatar, mood, activity, playing music and more |
50 "private"; -- Private XML storage (for room bookmarks, etc.) | 50 "private"; -- Private XML storage (for room bookmarks, etc.) |
51 "blocklist"; -- Allow users to block communications with other users | 51 "blocklist"; -- Allow users to block communications with other users |
52 "vcard4"; -- User profiles (stored in PEP) | 52 "vcard4"; -- User profiles (stored in PEP) |
53 "vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard | 53 "vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard |
54 "limits"; -- Enable bandwidth limiting for XMPP connections | |
54 | 55 |
55 -- Nice to have | 56 -- Nice to have |
56 "version"; -- Replies to server version requests | 57 "version"; -- Replies to server version requests |
57 "uptime"; -- Report how long server has been running | 58 "uptime"; -- Report how long server has been running |
58 "time"; -- Let others know the time here on this server | 59 "time"; -- Let others know the time here on this server |
69 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP" | 70 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP" |
70 --"websocket"; -- XMPP over WebSockets | 71 --"websocket"; -- XMPP over WebSockets |
71 --"http_files"; -- Serve static files from a directory over HTTP | 72 --"http_files"; -- Serve static files from a directory over HTTP |
72 | 73 |
73 -- Other specific functionality | 74 -- Other specific functionality |
74 --"limits"; -- Enable bandwidth limiting for XMPP connections | |
75 --"groups"; -- Shared roster support | 75 --"groups"; -- Shared roster support |
76 --"server_contact_info"; -- Publish contact information for this service | 76 --"server_contact_info"; -- Publish contact information for this service |
77 --"announce"; -- Send announcement to all online users | 77 --"announce"; -- Send announcement to all online users |
78 --"welcome"; -- Welcome users who register accounts | 78 --"welcome"; -- Welcome users who register accounts |
79 --"watchregistrations"; -- Alert admins of registrations | 79 --"watchregistrations"; -- Alert admins of registrations |
119 -- Even if you disable s2s_secure_auth, you can still require valid | 119 -- Even if you disable s2s_secure_auth, you can still require valid |
120 -- certificates for some domains by specifying a list here. | 120 -- certificates for some domains by specifying a list here. |
121 | 121 |
122 --s2s_secure_domains = { "jabber.org" } | 122 --s2s_secure_domains = { "jabber.org" } |
123 | 123 |
124 -- Enable rate limits for incoming client and server connections | |
125 | |
126 limits = { | |
127 c2s = { | |
128 rate = "10kb/s"; | |
129 }; | |
130 s2sin = { | |
131 rate = "30kb/s"; | |
132 }; | |
133 } | |
134 | |
124 -- Select the authentication backend to use. The 'internal' providers | 135 -- Select the authentication backend to use. The 'internal' providers |
125 -- use Prosody's configured data storage to store the authentication data. | 136 -- use Prosody's configured data storage to store the authentication data. |
126 | 137 |
127 authentication = "internal_hashed" | 138 authentication = "internal_hashed" |
128 | 139 |