mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 13:21:45 +01:00
196 lines
4.6 KiB
JSON
196 lines
4.6 KiB
JSON
{
|
|
"info": {
|
|
"relay_url": "wss://nostream.localtest.me",
|
|
"name": "nostream.localtest.me",
|
|
"description": "A nostr relay written in Typescript.",
|
|
"pubkey": "00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700",
|
|
"contact": "operator@your-domain.com"
|
|
},
|
|
"network": {
|
|
"maxPayloadSize": 131072,
|
|
"remoteIpHeader": "x-forwarded-for",
|
|
"idleTimeout": 60
|
|
},
|
|
"payments": {
|
|
"enabled": true,
|
|
"processor": "zebedee",
|
|
"feeSchedules": {
|
|
"admission": [{
|
|
"enabled": true,
|
|
"descripton": "Admission fee in msats (1000 msats = 1 satoshi)",
|
|
"amount": 1000000,
|
|
"whitelists": {
|
|
"pubkeys": ["replace-with-your-pubkey"]
|
|
}
|
|
}],
|
|
"publication": [
|
|
{
|
|
"enabled": true,
|
|
"description": "Publication fee in msats (1000 msats = 1 satoshi)",
|
|
"amount": 100,
|
|
"whitelists": {
|
|
"pubkeys": ["replace-with-your-pubkey"]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"paymentProcessors": {
|
|
"zebedee": {
|
|
"baseURL": "https://api.zebedee.io/",
|
|
"callbackBaseURL": "https://nostream.localtest.me/callbacks/zebedee"
|
|
}
|
|
},
|
|
"workers": {
|
|
"count": 0
|
|
},
|
|
"limits": {
|
|
"connection": {
|
|
"rateLimits": [
|
|
{
|
|
"period": 60000,
|
|
"rate": 12
|
|
},
|
|
{
|
|
"period": 3600000,
|
|
"rate": 360
|
|
},
|
|
{
|
|
"period": 86400000,
|
|
"rate": 2880
|
|
}
|
|
],
|
|
"ipWhitelist": [
|
|
"::1",
|
|
"::ffff:10.10.10.1"
|
|
]
|
|
},
|
|
"event": {
|
|
"eventId": {
|
|
"minLeadingZeroBits": 0
|
|
},
|
|
"kind": {
|
|
"whitelist": [],
|
|
"blacklist": []
|
|
},
|
|
"pubkey": {
|
|
"minLeadingZeroBits": 0,
|
|
"whitelist": [],
|
|
"blacklist": []
|
|
},
|
|
"createdAt": {
|
|
"maxPositiveDelta": 900,
|
|
"maxNegativeDelta": 0
|
|
},
|
|
"content": [
|
|
{
|
|
"description": "64 KB for event kind ranges 0-10 and 40-49",
|
|
"kinds": [[0, 10], [40, 49]],
|
|
"maxLength": 65536
|
|
},
|
|
{
|
|
"description": "96 KB for event kind ranges 11-39 and 50-max",
|
|
"kinds": [[11, 39], [50, 9007199254740991]],
|
|
"maxLength": 98304
|
|
}
|
|
],
|
|
"rateLimits": [
|
|
{
|
|
"description": "6 events/min for event kinds 0, 3, 40 and 41",
|
|
"kinds": [0, 3, 40, 41],
|
|
"period": 60000,
|
|
"rate": 6
|
|
},
|
|
{
|
|
"description": "12 events/min for event kinds 1, 2, 4 and 42",
|
|
"kinds": [1, 2, 4, 42],
|
|
"period": 60000,
|
|
"rate": 12
|
|
},
|
|
{
|
|
"description": "360 events/hour for event kinds 1, 2, 4 and 42",
|
|
"kinds": [1, 2, 4, 42],
|
|
"period": 3600000,
|
|
"rate": 360
|
|
},
|
|
{
|
|
"description": "30 events/min for event kind ranges 5-7 and 43-49",
|
|
"kinds": [[5, 7], [43, 49]],
|
|
"period": 60000,
|
|
"rate": 30
|
|
},
|
|
{
|
|
"description": "24 events/min for replaceable events and parameterized replaceable events",
|
|
"kinds": [[10000, 19999], [30000, 39999]],
|
|
"period": 60000,
|
|
"rate": 24
|
|
},
|
|
{
|
|
"description": "60 events/min for ephemeral events",
|
|
"kinds": [[20000, 29999]],
|
|
"period": 60000,
|
|
"rate": 60
|
|
},
|
|
{
|
|
"description": "720 events/hour for all events",
|
|
"period": 3600000,
|
|
"rate": 720
|
|
},
|
|
{
|
|
"description": "2880 events/day for all events",
|
|
"period": 86400000,
|
|
"rate": 2880
|
|
}
|
|
],
|
|
"whitelists": {
|
|
"pubkeys": [],
|
|
"ipAddresses": [
|
|
"::1",
|
|
"::ffff:10.10.10.1"
|
|
]
|
|
}
|
|
},
|
|
"client": {
|
|
"subscription": {
|
|
"maxSubscriptions": 10,
|
|
"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": "120 raw messages/min",
|
|
"period": 60000,
|
|
"rate": 120
|
|
},
|
|
{
|
|
"description": "3600 raw messages/hour",
|
|
"period": 3600000,
|
|
"rate": 3600
|
|
},
|
|
{
|
|
"description": "86400 raw messages/day",
|
|
"period": 86400000,
|
|
"rate": 86400
|
|
}
|
|
],
|
|
"ipWhitelist": [
|
|
"::1",
|
|
"::ffff:10.10.10.1"
|
|
]
|
|
}
|
|
}
|
|
}
|