diff options
author | rinpatch <rinpatch@sdf.org> | 2020-02-28 17:44:59 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-03-01 01:13:08 +0300 |
commit | ffcebe7e22b4c5ccaf3ba63f3ed2885ac55a6b4d (patch) | |
tree | a74b9123bd1ce852b4c17e39c3db94fb7a876a68 /config/description.exs | |
parent | 4d416343fae4a9e0b1654b12bd476017be63a7e9 (diff) | |
download | pleroma-ffcebe7e22b4c5ccaf3ba63f3ed2885ac55a6b4d.tar.gz pleroma-ffcebe7e22b4c5ccaf3ba63f3ed2885ac55a6b4d.zip |
timeline controller: rate limit timelines to 3 requests per 500ms per timeline per ip/user
Diffstat (limited to 'config/description.exs')
-rw-r--r-- | config/description.exs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/description.exs b/config/description.exs index bcb69bc41..9fdcfcd96 100644 --- a/config/description.exs +++ b/config/description.exs @@ -2466,6 +2466,12 @@ config :pleroma, :config_description, [ suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]] }, %{ + key: :timeline, + type: [:tuple, {:list, :tuple}], + description: "For requests to timelines (each timeline has it's own limiter)", + suggestions: [{1000, 10}, [{10_000, 10}, {10_000, 50}]] + }, + %{ key: :app_account_creation, type: [:tuple, {:list, :tuple}], description: "For registering user accounts from the same IP address", |