Browse Source
- Use pre-built dockurr/strfry image instead of building from source - Fix strfry.conf format to match strfry 1.0.4 syntax - Fix Dockerfile.orly to build both relay and sync binaries - Use GOTOOLCHAIN=auto to handle Go version requirements - Remove healthcheck dependencies to prevent startup blocking Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>main
4 changed files with 81 additions and 44 deletions
@ -1,36 +1,78 @@
@@ -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 { |
||||
# 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" |
||||
|
||||
# Port to open for the nostr websocket protocol |
||||
port = 7777 |
||||
|
||||
# Enable negentropy protocol for sync |
||||
negentropy { |
||||
enabled = true |
||||
maxSyncEvents = 1000000 |
||||
} |
||||
nofiles = 1000000 |
||||
realIpHeader = "" |
||||
|
||||
# Number of threads for handling negentropy messages |
||||
numThreads { |
||||
negentropy = 4 |
||||
info { |
||||
name = "strfry test" |
||||
description = "strfry instance for negentropy interop testing" |
||||
pubkey = "" |
||||
contact = "" |
||||
icon = "" |
||||
nips = "" |
||||
} |
||||
|
||||
# Nostr protocol settings |
||||
nostr { |
||||
# Maximum message size (1MB) |
||||
maxWebsocketPayloadSize = 131072 |
||||
maxReqFilterSize = 200 |
||||
autoPingSeconds = 55 |
||||
enableTcpKeepalive = false |
||||
queryTimesliceBudgetMicroseconds = 10000 |
||||
maxFilterLimit = 10000 |
||||
maxSubsPerConnection = 20 |
||||
|
||||
writePolicy { |
||||
plugin = "" |
||||
} |
||||
|
||||
compression { |
||||
enabled = true |
||||
slidingWindow = true |
||||
} |
||||
|
||||
db { |
||||
# LMDB directory |
||||
path = "/data/strfry-db/" |
||||
logging { |
||||
dumpInAll = false |
||||
dumpInEvents = false |
||||
dumpInReqs = false |
||||
dbScanPerf = false |
||||
invalidEvents = true |
||||
} |
||||
|
||||
events { |
||||
# Maximum events to return |
||||
maxLimit = 10000 |
||||
numThreads { |
||||
ingester = 3 |
||||
reqWorker = 3 |
||||
reqMonitor = 3 |
||||
negentropy = 4 |
||||
} |
||||
|
||||
negentropy { |
||||
# Enable negentropy protocol for sync testing |
||||
enabled = true |
||||
maxSyncEvents = 1000000 |
||||
} |
||||
} |
||||
|
||||
Loading…
Reference in new issue