Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Relax client log rate limiting

Chocobozzzf81bc3d3dc9d
diff --git a/config/default.yaml b/config/default.yaml
index 8920e0d37c..2a213175bc 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -33,9 +33,9 @@ rates_limit:
window: 5 minutes
max: 3
receive_client_log:
- # 10 attempts in 10 min
- window: 10 minutes
- max: 10
+ # 1 attempt every 2 seconds
+ window: 1 minute
+ max: 30
plugins:
# 500 attempts in 10 seconds (we also serve plugin static files)
window: 10 seconds
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 0296b7e569..71b9c4cb91 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -31,9 +31,9 @@ rates_limit:
window: 5 minutes
max: 3
receive_client_log:
- # 10 attempts in 10 min
- window: 10 minutes
- max: 10
+ # 1 attempt every 2 seconds
+ window: 1 minute
+ max: 30
plugins:
# 500 attempts in 10 seconds (we also serve plugin static files)
window: 10 seconds
diff --git a/server/core/initializers/constants.ts b/server/core/initializers/constants.ts
index 1395af040b..77dd916552 100644
--- a/server/core/initializers/constants.ts
+++ b/server/core/initializers/constants.ts
@@ -487,7 +487,7 @@ const CONSTRAINTS_FIELDS = {
LOGS: {
CLIENT_MESSAGE: { min: 1, max: 1000 }, // Length
CLIENT_STACK_TRACE: { min: 1, max: 15000 }, // Length
- CLIENT_META: { min: 1, max: 5000 }, // Length
+ CLIENT_META: { min: 1, max: 15000 }, // Length
CLIENT_USER_AGENT: { min: 1, max: 200 } // Length
},
RUNNERS: {