diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-09-17 16:16:11 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-09-17 16:16:11 +0300 |
commit | e7afb67c5c26fcb07c1f8d4390c0573cebef9520 (patch) | |
tree | 3a651340144d4b5f799df9fe9bf4d561dc60dd51 /config/description.exs | |
parent | a58f29b826333c1ecb0907228f0e087a3ecd9778 (diff) | |
download | pleroma-e7afb67c5c26fcb07c1f8d4390c0573cebef9520.tar.gz pleroma-e7afb67c5c26fcb07c1f8d4390c0573cebef9520.zip |
[#1260] Rate-limiting for create authentication and related requests.
Diffstat (limited to 'config/description.exs')
-rw-r--r-- | config/description.exs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/description.exs b/config/description.exs index 32d36d6d6..bd0378e00 100644 --- a/config/description.exs +++ b/config/description.exs @@ -2424,7 +2424,8 @@ config :pleroma, :config_description, [ group: :pleroma, key: :rate_limit, type: :group, - description: "Rate limit settings. This is an advanced feature and disabled by default.", + description: + "Rate limit settings. This is an advanced feature enabled only for :authentication by default.", children: [ %{ key: :search, @@ -2463,6 +2464,12 @@ config :pleroma, :config_description, [ description: "for fav / unfav or reblog / unreblog actions on the same status by the same user", suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]] + }, + %{ + key: :authentication, + type: [:tuple, {:list, :tuple}], + description: "for authentication create / password check / user existence check requests", + suggestions: [{60_000, 15}] } ] }, |