From c342726ad4ccbb90b8ff29f1cc1c89f9f7e8d98f Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 26 Apr 2019 13:48:55 +0200 Subject: Allow to control RATES_LIMIT from configuration (#1787) * Allow to control RATES_LIMIT from configuration * @Chocobozzz review (squash me) --- support/docker/production/config/production.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'support/docker') diff --git a/support/docker/production/config/production.yaml b/support/docker/production/config/production.yaml index d585cd73e..ae6bf3982 100644 --- a/support/docker/production/config/production.yaml +++ b/support/docker/production/config/production.yaml @@ -8,6 +8,16 @@ webserver: hostname: undefined port: 443 +rates_limit: + login: + # 15 attempts in 5 min + window: 5 minutes + max: 15 + ask_send_email: + # 3 attempts in 5 min + window: 5 minutes + max: 3 + # Proxies to trust to get real client IP # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) -- cgit v1.2.3