-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrfry.conf
More file actions
84 lines (70 loc) · 1.67 KB
/
strfry.conf
File metadata and controls
84 lines (70 loc) · 1.67 KB
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
##
## Commons Hub strfry config
##
db = "/data/strfry-db/"
dbParams {
maxreaders = 256
mapsize = 10995116277760
noReadAhead = false
}
events {
maxEventSize = 65536
rejectEventsNewerThanSeconds = 900
rejectEventsOlderThanSeconds = 94608000
rejectEphemeralEventsOlderThanSeconds = 60
ephemeralEventsLifetimeSeconds = 300
maxNumTags = 2000
maxTagValSize = 1024
}
relay {
bind = "0.0.0.0"
port = 7777
nofiles = 0
# Set by reverse proxy (nginx/Coolify)
realIpHeader = "x-forwarded-for"
auth {
enabled = true
serviceUrl = "wss://relay.commonshub.brussels"
}
info {
name = "Commons Hub"
description = "Nostr relay for the Commons Hub community. Reads are open, writes are restricted to community members."
pubkey = ""
contact = "hello@commonshub.brussels"
icon = ""
banner = ""
}
maxWebsocketPayloadSize = 131072
maxReqFilterSize = 200
autoPingSeconds = 55
enableTcpKeepalive = false
queryTimesliceBudgetMicroseconds = 10000
maxFilterLimit = 500
maxFilterLimitCount = 1000000
maxSubsPerConnection = 200
writePolicy {
plugin = "/app/plugins/write-policy.js"
timeoutSeconds = 10
}
compression {
enabled = true
slidingWindow = true
}
logging {
dumpInAll = false
dumpInEvents = false
dumpInReqs = false
dbScanPerf = false
invalidEvents = true
}
numThreads {
ingester = 3
reqWorker = 3
reqMonitor = 3
negentropy = 2
}
negentropy {
enabled = true
maxSyncEvents = 1000000
}
}