fix: increase rate limits

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
Ricardo Arturo Cabral Mejía 2023-01-28 14:10:04 -05:00
parent 7778cd169b
commit 282f7db0a1

View File

@ -2,7 +2,7 @@ info:
relay_url: wss://nostream.your-domain.com
name: nostream.your-domain.com
description: A nostr relay written in Typescript.
pubkey: replace-with-your-pubkey
pubkey: replace-with-your-pubkey-in-hex
contact: operator@your-domain.com
payments:
enabled: false
@ -14,19 +14,20 @@ payments:
amount: 1000000
whitelists:
pubkeys:
- replace-with-your-pubkey
- replace-with-your-pubkey-in-hex
publication:
- enabled: false
description: Publication fee charged per event in msats (1000 msats = 1 satoshi)
amount: 10
whitelists:
pubkeys:
- replace-with-your-pubkey
- replace-with-your-pubkey-in-hex
paymentsProcessors:
zebedee:
baseURL: https://api.zebedee.io/
callbackBaseURL: https://nostream.your-domain.com/callbacks/zebedee
ipWhitelist:
- "3.225.112.64"
- "::ffff:3.225.112.64"
network:
maxPayloadSize: 131072
@ -45,6 +46,7 @@ limits:
rate: 20
ipWhitelist:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"
connection:
rateLimits:
@ -58,6 +60,7 @@ limits:
rate: 1440
ipWhitelist:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"
event:
eventId:
@ -146,6 +149,7 @@ limits:
pubkeys: []
ipAddresses:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"
client:
subscription:
@ -153,16 +157,16 @@ limits:
maxFilters: 10
message:
rateLimits:
- description: 60 subscriptions/min
types:
- REQ
period: 60000
rate: 60
- description: 2880 subscriptions/hour
types:
- REQ
period: 3600000
rate: 2880
# - description: 60 subscriptions/min
# types:
# - REQ
# period: 60000
# rate: 60
# - description: 2880 subscriptions/hour
# types:
# - REQ
# period: 3600000
# rate: 2880
- description: 120 raw messages/min
period: 60000
rate: 120
@ -174,4 +178,5 @@ limits:
rate: 86400
ipWhitelist:
- "::1"
- "10.10.10.1"
- "::ffff:10.10.10.1"