aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/production.yaml.example
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-04 16:42:40 +0200
committerChocobozzz <me@florianbigard.com>2019-07-04 16:42:40 +0200
commitc1340a6ac35f924161e6ec2a1d728e20c89e55c8 (patch)
tree8f0a6b72b36be586422002039720d3a08309cbea /config/production.yaml.example
parentfd0bfc3ac43eb0c0c2ac0b21bc2e0670f546384f (diff)
downloadPeerTube-c1340a6ac35f924161e6ec2a1d728e20c89e55c8.tar.gz
PeerTube-c1340a6ac35f924161e6ec2a1d728e20c89e55c8.tar.zst
PeerTube-c1340a6ac35f924161e6ec2a1d728e20c89e55c8.zip
Add rate limit to registration and API endpoints
Diffstat (limited to 'config/production.yaml.example')
-rw-r--r--config/production.yaml.example8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/production.yaml.example b/config/production.yaml.example
index cdf6136d8..f55f5c096 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -9,10 +9,18 @@ webserver:
9 port: 443 9 port: 443
10 10
11rates_limit: 11rates_limit:
12 api:
13 # 50 attempts in 10 seconds
14 window: 10 seconds
15 max: 50
12 login: 16 login:
13 # 15 attempts in 5 min 17 # 15 attempts in 5 min
14 window: 5 minutes 18 window: 5 minutes
15 max: 15 19 max: 15
20 signup:
21 # 2 attempts in 5 min (only succeeded attempts are taken into account)
22 window: 5 minutes
23 max: 2
16 ask_send_email: 24 ask_send_email:
17 # 3 attempts in 5 min 25 # 3 attempts in 5 min
18 window: 5 minutes 26 window: 5 minutes