Skip to content

Commit

Permalink
Merge pull request #755 from cryptodriver/patch-3
Browse files Browse the repository at this point in the history
Update ratelimit.md
  • Loading branch information
vstakhov authored Jun 7, 2024
2 parents df1d5b1 + d97d7da commit a5cce63
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions doc/modules/ratelimit.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,8 @@ Users can define their own keywords to create ratelimits by following steps as b
First, add the `custom_keywords` setting to the configuration file, pointing to a Lua script that will be created:

~~~hcl
ratelimit {
custom_keywords = "/etc/rspamd/custom_ratelimit.lua";
# other settings ...
}
~~~

Next, create a Lua script that returns a table containing the custom function(s). For instance, the following table ("custom_keywords") contains a function ("customrl") that applies ratelimits to users only when the user is found in a map:
Expand Down

0 comments on commit a5cce63

Please sign in to comment.