aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml20
-rw-r--r--config/production.yaml.example20
2 files changed, 40 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml
index 10d3f79e7..53d8c45de 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -36,6 +36,26 @@ rates_limit:
36 # 10 attempts in 10 min 36 # 10 attempts in 10 min
37 window: 10 minutes 37 window: 10 minutes
38 max: 10 38 max: 10
39 plugins:
40 # 500 attempts in 10 seconds (we also serve plugin static files)
41 window: 10 seconds
42 max: 500
43 well_known:
44 # 200 attempts in 10 seconds
45 window: 10 seconds
46 max: 200
47 feeds:
48 # 50 attempts in 10 seconds
49 window: 10 seconds
50 max: 50
51 activity_pub:
52 # 500 attempts in 10 seconds (we can have many AP requests)
53 window: 10 seconds
54 max: 500
55 client: # HTML files generated by PeerTube
56 # 500 attempts in 10 seconds (to not break crawlers)
57 window: 10 seconds
58 max: 500
39 59
40oauth2: 60oauth2:
41 token_lifetime: 61 token_lifetime:
diff --git a/config/production.yaml.example b/config/production.yaml.example
index a829b46f9..87ef2b676 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -34,6 +34,26 @@ rates_limit:
34 # 10 attempts in 10 min 34 # 10 attempts in 10 min
35 window: 10 minutes 35 window: 10 minutes
36 max: 10 36 max: 10
37 plugins:
38 # 500 attempts in 10 seconds (we also serve plugin static files)
39 window: 10 seconds
40 max: 500
41 well_known:
42 # 200 attempts in 10 seconds
43 window: 10 seconds
44 max: 200
45 feeds:
46 # 50 attempts in 10 seconds
47 window: 10 seconds
48 max: 50
49 activity_pub:
50 # 500 attempts in 10 seconds (we can have many AP requests)
51 window: 10 seconds
52 max: 500
53 client: # HTML files generated by PeerTube
54 # 500 attempts in 10 seconds (to not break crawlers)
55 window: 10 seconds
56 max: 500
37 57
38oauth2: 58oauth2:
39 token_lifetime: 59 token_lifetime: