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 @@ |
|||||||
## 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 = "" |
||||||
enabled = true |
|
||||||
maxSyncEvents = 1000000 |
|
||||||
} |
|
||||||
|
|
||||||
# Number of threads for handling negentropy messages |
info { |
||||||
numThreads { |
name = "strfry test" |
||||||
negentropy = 4 |
description = "strfry instance for negentropy interop testing" |
||||||
|
pubkey = "" |
||||||
|
contact = "" |
||||||
|
icon = "" |
||||||
|
nips = "" |
||||||
} |
} |
||||||
|
|
||||||
# Nostr protocol settings |
maxWebsocketPayloadSize = 131072 |
||||||
nostr { |
maxReqFilterSize = 200 |
||||||
# Maximum message size (1MB) |
autoPingSeconds = 55 |
||||||
|
enableTcpKeepalive = false |
||||||
|
queryTimesliceBudgetMicroseconds = 10000 |
||||||
maxFilterLimit = 10000 |
maxFilterLimit = 10000 |
||||||
|
maxSubsPerConnection = 20 |
||||||
|
|
||||||
|
writePolicy { |
||||||
|
plugin = "" |
||||||
} |
} |
||||||
|
|
||||||
|
compression { |
||||||
|
enabled = true |
||||||
|
slidingWindow = true |
||||||
} |
} |
||||||
|
|
||||||
db { |
logging { |
||||||
# LMDB directory |
dumpInAll = false |
||||||
path = "/data/strfry-db/" |
dumpInEvents = false |
||||||
|
dumpInReqs = false |
||||||
|
dbScanPerf = false |
||||||
|
invalidEvents = true |
||||||
} |
} |
||||||
|
|
||||||
events { |
numThreads { |
||||||
# Maximum events to return |
ingester = 3 |
||||||
maxLimit = 10000 |
reqWorker = 3 |
||||||
|
reqMonitor = 3 |
||||||
|
negentropy = 4 |
||||||
|
} |
||||||
|
|
||||||
|
negentropy { |
||||||
|
# Enable negentropy protocol for sync testing |
||||||
|
enabled = true |
||||||
|
maxSyncEvents = 1000000 |
||||||
|
} |
||||||
} |
} |
||||||
|
|||||||
Loading…
Reference in new issue