mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
docs: add content.maxLength setting
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
parent
9364412677
commit
52f370a0db
@ -37,6 +37,7 @@ Running `nostr-ts-relay` for the first time creates the settings file in `~/.nos
|
||||
| limits.event.pubkey.blacklist | List of public keys to reject. Public keys in this list will not be able to post to this relay. |
|
||||
| limits.event.createdAt.maxPositiveDelta | Maximum number of seconds an event's `created_at` can be in the future. Defaults to 900 (15 minutes). Disabled when set to zero. |
|
||||
| limits.event.createdAt.minNegativeDelta | Maximum number of secodns an event's `created_at` can be in the past. Defaults to zero. Disabled when set to zero. |
|
||||
| limits.event.content.maxLength | Maximum length of `content`. Defaults to 1 MB. Disabled when set to zero. |
|
||||
| limits.event.rateLimits[].kinds | List of event kinds rate limited. Use `[min, max]` for ranges. Optional. |
|
||||
| limits.event.rateLimits[].period | Rate limiting period in milliseconds. |
|
||||
| limits.event.rateLimits[].rate | Maximum number of events during period. |
|
||||
|
@ -24,6 +24,9 @@
|
||||
"maxPositiveDelta": 900,
|
||||
"maxNegativeDelta": 0
|
||||
},
|
||||
"content": {
|
||||
"maxLength": 1048576
|
||||
},
|
||||
"rateLimits": [
|
||||
{
|
||||
"kinds": [[0, 5], 7, [40, 49], [10000, 19999], [30000, 39999]],
|
||||
|
Loading…
x
Reference in New Issue
Block a user