diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-25 15:18:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-26 08:37:50 +0200 |
commit | 97583d00235d5e8f29d9c49ca13096521e394aa4 (patch) | |
tree | 5f29ba8c8e5b2d2653a1173408151bb64f6a80a9 /config | |
parent | 9901c8d6908a43ab4594406446eac770ee21176c (diff) | |
download | PeerTube-97583d00235d5e8f29d9c49ca13096521e394aa4.tar.gz PeerTube-97583d00235d5e8f29d9c49ca13096521e394aa4.tar.zst PeerTube-97583d00235d5e8f29d9c49ca13096521e394aa4.zip |
Add more rate limits
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 20 | ||||
-rw-r--r-- | config/production.yaml.example | 20 |
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 | ||
40 | oauth2: | 60 | oauth2: |
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 | ||
38 | oauth2: | 58 | oauth2: |
39 | token_lifetime: | 59 | token_lifetime: |