diff options
author | rinpatch <rinpatch@sdf.org> | 2020-01-29 23:58:15 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-01-30 00:06:58 +0300 |
commit | 7499805abf989fe0b5cb10c9da112c5f7371c882 (patch) | |
tree | 65373df9d0dec223e1bf79aab89744aba0de8e26 /config | |
parent | 505234d9759555a17a6dd436bb31307967ab660b (diff) | |
download | pleroma-7499805abf989fe0b5cb10c9da112c5f7371c882.tar.gz pleroma-7499805abf989fe0b5cb10c9da112c5f7371c882.zip |
config.exs: Re-enable rate limiter and enable remote ip
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/config/config.exs b/config/config.exs index f4e307e18..c57ef1bf7 100644 --- a/config/config.exs +++ b/config/config.exs @@ -596,11 +596,21 @@ config :pleroma, :env, Mix.env() config :http_signatures, adapter: Pleroma.Signature -config :pleroma, :rate_limit, authentication: {60_000, 15} +config :pleroma, :rate_limit, + authentication: {60_000, 15}, + search: [{1000, 10}, {1000, 30}], + app_account_creation: {1_800_000, 25}, + relations_actions: {10_000, 10}, + relation_id_action: {60_000, 2}, + statuses_actions: {10_000, 15}, + status_id_action: {60_000, 3}, + password_reset: {1_800_000, 5}, + account_confirmation_resend: {8_640_000, 5}, + ap_routes: {60_000, 15} config :pleroma, Pleroma.ActivityExpiration, enabled: true -config :pleroma, Pleroma.Plugs.RemoteIp, enabled: false +config :pleroma, Pleroma.Plugs.RemoteIp, enabled: true config :pleroma, :static_fe, enabled: false |