-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.sample.json
112 lines (112 loc) · 2.18 KB
/
settings.sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"info": {
"relay_url": "wss://nostream.your-domain.com",
"name": "nostream.your-domain.com",
"description": "A nostr relay written in TypeScript.",
"pubkey": "replace-with-your-pubkey",
"contact": "operator@your-domain.com"
},
"network": {
"max_payload_size": 131072,
"remote_ip_header": "x-forwarded-for"
},
"workers": {
"count": 0
},
"limits": {
"event": {
"eventId": {
"minLeadingZeroBits": 0
},
"kind": {
"whitelist": [],
"blacklist": []
},
"pubkey": {
"minLeadingZeroBits": 0,
"whitelist": [],
"blacklist": []
},
"createdAt": {
"maxPositiveDelta": 900,
"maxNegativeDelta": 0
},
"content": {
"maxLength": 1048576
},
"rateLimits": [
{
"kinds": [0, 3, 40, 41],
"period": 60000,
"rate": 6
},
{
"kinds": [1, 2, 4, 42],
"period": 60000,
"rate": 12
},
{
"kinds": [1, 2, 4, 42],
"period": 3600000,
"rate": 360
},
{
"kinds": [[5, 7], [43, 49]],
"period": 60000,
"rate": 30
},
{
"kinds": [[10000, 19999], [30000, 39999]],
"period": 60000,
"rate": 24
},
{
"kinds": [[20000, 29999]],
"period": 60000,
"rate": 60
},
{
"period": 3600000,
"rate": 720
},
{
"period": 86400000,
"rate": 2880
}
],
"whitelists": {
"pubkeys": [],
"ipAddresses": [
"::1",
"::ffff:10.10.10.1"
]
}
},
"client": {
"subscription": {
"maxSubscriptions": 10,
"maxFilters": 10
}
},
"message": {
"rateLimits": [
{
"period": 60000,
"rate": 120
},
{
"period": 3600000,
"rate": 3600
},
{
"period": 86400000,
"rate": 86400
}
],
"ipWhitelist": [
"::1",
"::ffff:10.10.10.1"
]
}
}
}