nostream/settings.sample.json
Ricardo Arturo Cabral Mejía 52f370a0db docs: add content.maxLength setting
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2022-11-20 10:40:39 -05:00

78 lines
1.5 KiB
JSON

{
"info": {
"relay_url": "wss://nostr-ts-relay.your-domain.com",
"name": "nostr-ts-relay.your-domain.com",
"description": "A nostr relay written in Typescript.",
"pubkey": "replace-with-your-pubkey",
"contact": "operator@your-domain.com"
},
"limits": {
"event": {
"eventId": {
"minLeadingZeroBits": 0
},
"kind": {
"whitelist": [],
"blacklist": []
},
"pubkey": {
"minLeadingZeroBits": 0,
"whitelist": [],
"blacklist": []
},
"createdAt": {
"maxPositiveDelta": 900,
"maxNegativeDelta": 0
},
"content": {
"maxLength": 1048576
},
"rateLimits": [
{
"kinds": [[0, 5], 7, [40, 49], [10000, 19999], [30000, 39999]],
"period": 60000,
"rate": 60
},
{
"kinds": [[20000, 29999]],
"period": 60000,
"rate": 600
},
{
"period": 3600000,
"rate": 3600
},
{
"period": 86400000,
"rate": 86400
}
]
},
"client": {
"subscription": {
"maxSubscriptions": 10,
"maxFilters": 10
}
},
"message": {
"rateLimits": [
{
"period": 60000,
"rate": 600
},
{
"period": 3600000,
"rate": 3600
},
{
"period": 86400000,
"rate": 86400
}
],
"ipWhitelist": [
"::1",
"::ffff:10.10.10.1"
]
}
}
}