@ -1,36 +1,78 @@
## strfry configuration for negentropy interop testing
##
## strfry config for negentropy interop testing
##
# Directory that contains the strfry LMDB database
db = "/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 {
relay {
# Interface to listen on. Use 0.0.0.0 to listen on all interfaces
# Listen on all interfaces for Docker
bind = "0.0.0.0"
bind = "0.0.0.0"
# Port to open for the nostr websocket protocol
port = 7777
port = 7777
# Enable negentropy protocol for sync
nofiles = 1000000
negentropy {
realIpHeader = ""
info {
name = "strfry test"
description = "strfry instance for negentropy interop testing"
pubkey = ""
contact = ""
icon = ""
nips = ""
}
maxWebsocketPayloadSize = 131072
maxReqFilterSize = 200
autoPingSeconds = 55
enableTcpKeepalive = false
queryTimesliceBudgetMicroseconds = 10000
maxFilterLimit = 10000
maxSubsPerConnection = 20
writePolicy {
plugin = ""
}
compression {
enabled = true
enabled = true
maxSyncEvents = 1000000
slidingWindow = true
}
logging {
dumpInAll = false
dumpInEvents = false
dumpInReqs = false
dbScanPerf = false
invalidEvents = true
}
}
# Number of threads for handling negentropy messages
numThreads {
numThreads {
ingester = 3
reqWorker = 3
reqMonitor = 3
negentropy = 4
negentropy = 4
}
}
# Nostr protocol settings
negentropy {
nostr {
# Enable negentropy protocol for sync testing
# Maximum message size (1MB)
enabled = true
maxFilterLimit = 10000
maxSyncEvents = 100 0000
}
}
}
}
db {
# LMDB directory
path = "/data/strfry-db/"
}
events {
# Maximum events to return
maxLimit = 10000
}