Skip to content

Commit 282f7db

Browse files
committed
fix: increase rate limits
Signed-off-by: Ricardo Arturo Cabral Mejía <[email protected]>
1 parent 7778cd1 commit 282f7db

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

resources/default-settings.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ info:
22
relay_url: wss://nostream.your-domain.com
33
name: nostream.your-domain.com
44
description: A nostr relay written in Typescript.
5-
pubkey: replace-with-your-pubkey
5+
pubkey: replace-with-your-pubkey-in-hex
66
77
payments:
88
enabled: false
@@ -14,19 +14,20 @@ payments:
1414
amount: 1000000
1515
whitelists:
1616
pubkeys:
17-
- replace-with-your-pubkey
17+
- replace-with-your-pubkey-in-hex
1818
publication:
1919
- enabled: false
2020
description: Publication fee charged per event in msats (1000 msats = 1 satoshi)
2121
amount: 10
2222
whitelists:
2323
pubkeys:
24-
- replace-with-your-pubkey
24+
- replace-with-your-pubkey-in-hex
2525
paymentsProcessors:
2626
zebedee:
2727
baseURL: https://api.zebedee.io/
2828
callbackBaseURL: https://nostream.your-domain.com/callbacks/zebedee
2929
ipWhitelist:
30+
- "3.225.112.64"
3031
- "::ffff:3.225.112.64"
3132
network:
3233
maxPayloadSize: 131072
@@ -45,6 +46,7 @@ limits:
4546
rate: 20
4647
ipWhitelist:
4748
- "::1"
49+
- "10.10.10.1"
4850
- "::ffff:10.10.10.1"
4951
connection:
5052
rateLimits:
@@ -58,6 +60,7 @@ limits:
5860
rate: 1440
5961
ipWhitelist:
6062
- "::1"
63+
- "10.10.10.1"
6164
- "::ffff:10.10.10.1"
6265
event:
6366
eventId:
@@ -146,23 +149,24 @@ limits:
146149
pubkeys: []
147150
ipAddresses:
148151
- "::1"
152+
- "10.10.10.1"
149153
- "::ffff:10.10.10.1"
150154
client:
151155
subscription:
152156
maxSubscriptions: 10
153157
maxFilters: 10
154158
message:
155159
rateLimits:
156-
- description: 60 subscriptions/min
157-
types:
158-
- REQ
159-
period: 60000
160-
rate: 60
161-
- description: 2880 subscriptions/hour
162-
types:
163-
- REQ
164-
period: 3600000
165-
rate: 2880
160+
# - description: 60 subscriptions/min
161+
# types:
162+
# - REQ
163+
# period: 60000
164+
# rate: 60
165+
# - description: 2880 subscriptions/hour
166+
# types:
167+
# - REQ
168+
# period: 3600000
169+
# rate: 2880
166170
- description: 120 raw messages/min
167171
period: 60000
168172
rate: 120
@@ -174,4 +178,5 @@ limits:
174178
rate: 86400
175179
ipWhitelist:
176180
- "::1"
181+
- "10.10.10.1"
177182
- "::ffff:10.10.10.1"

0 commit comments

Comments
 (0)