summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-06-11 14:27:41 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-06-11 14:27:41 +0700
commit2e5affce61a9255602d3a5d4c5caced9f09b1f5a (patch)
tree0e733412ea0c9e72bdd06965c302a8202256dce8 /docs
parent62cdf701f47352004c293c3ca049d232b3d16af7 (diff)
downloadpleroma-2e5affce61a9255602d3a5d4c5caced9f09b1f5a.tar.gz
pleroma-2e5affce61a9255602d3a5d4c5caced9f09b1f5a.zip
Add RateLimiter
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md
index c61a5d8a3..e31e2b90f 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -616,3 +616,14 @@ To enable them, both the `rum_enabled` flag has to be set and the following spec
`mix ecto.migrate --migrations-path priv/repo/optional_migrations/rum_indexing/`
This will probably take a long time.
+
+## :rate_limit
+
+A keyword list of rate limiters where a key is a limiter name and value is the limiter configuration. The basic configuration is a tuple where:
+
+* The first element: `scale` (Integer). The time scale in milliseconds.
+* The second element: `limit` (Integer). How many requests to limit in the time scale provided.
+
+It is also possible to have different limits for unauthenticated and authenticated users: the keyword value must be a list of two tuples where the first one is a config for unauthenticated users and the second one is for authenticated.
+
+See [`Pleroma.Plugs.RateLimiter`](Pleroma.Plugs.RateLimiter.html) documentation for examples.