mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
feat: add rate limit whitelists for pubkeys/ips
This commit is contained in:
parent
792d45d402
commit
3620026645
@ -73,7 +73,14 @@
|
||||
"period": 86400000,
|
||||
"rate": 2880
|
||||
}
|
||||
]
|
||||
],
|
||||
"whitelists": {
|
||||
"pubkeys": [],
|
||||
"ipAddresses": [
|
||||
"::1",
|
||||
"::ffff:10.10.10.1"
|
||||
]
|
||||
}
|
||||
},
|
||||
"client": {
|
||||
"subscription": {
|
||||
|
@ -52,6 +52,11 @@ export interface ContentLimits {
|
||||
maxLength?: number
|
||||
}
|
||||
|
||||
export interface EventWhitelists {
|
||||
pubkeys?: Pubkey[]
|
||||
ipAddresses?: string[]
|
||||
}
|
||||
|
||||
export interface EventLimits {
|
||||
eventId?: EventIdLimits
|
||||
pubkey?: PubkeyLimits
|
||||
@ -59,6 +64,7 @@ export interface EventLimits {
|
||||
createdAt?: CreatedAtLimits
|
||||
content?: ContentLimits
|
||||
rateLimits?: EventRateLimit[]
|
||||
whitelists?: EventWhitelists
|
||||
}
|
||||
|
||||
export interface ClientSubscriptionLimits {
|
||||
|
Loading…
x
Reference in New Issue
Block a user