[#1260] Rate-limiting for create authentication and related requests.
This commit is contained in:
parent
a58f29b826
commit
e7afb67c5c
4 changed files with 15 additions and 2 deletions
|
|
@ -585,7 +585,7 @@ config :pleroma, :env, Mix.env()
|
|||
config :http_signatures,
|
||||
adapter: Pleroma.Signature
|
||||
|
||||
config :pleroma, :rate_limit, nil
|
||||
config :pleroma, :rate_limit, authentication: {60_000, 15}
|
||||
|
||||
config :pleroma, Pleroma.ActivityExpiration, enabled: true
|
||||
|
||||
|
|
|
|||
|
|
@ -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}]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue