aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/default.yaml
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/default.yaml
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/default.yaml')
-rw-r--r--config/default.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml
index a213d5b0a..be5c8993c 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -10,10 +10,18 @@ webserver:
10 port: 9000 10 port: 9000
11 11
12rates_limit: 12rates_limit:
13 api:
14 # 50 attempts in 10 seconds
15 window: 10 seconds
16 max: 50
13 login: 17 login:
14 # 15 attempts in 5 min 18 # 15 attempts in 5 min
15 window: 5 minutes 19 window: 5 minutes
16 max: 15 20 max: 15
21 signup:
22 # 2 attempts in 5 min (only succeeded attempts are taken into account)
23 window: 5 minutes
24 max: 2
17 ask_send_email: 25 ask_send_email:
18 # 3 attempts in 5 min 26 # 3 attempts in 5 min
19 window: 5 minutes 27 window: 5 minutes