# strfry relay configuration # Sovereign Nostr relay for The Timmy Foundation # Database directory db = "./data/strfry-db" # HTTP server configuration server { # Interface to bind to (0.0.0.0 for all interfaces) bind = "0.0.0.0" # Port to listen on port = 7777 # Path to Unix socket (if using Unix socket instead of TCP) # unix = "/tmp/strfry.sock" # Number of threads for the HTTP server threads = 4 # Maximum number of connections maxConnections = 10000 # Maximum size of HTTP request body (bytes) maxReqSize = 131072 # Enable HTTP compression compression = true } # Relay information (NIP-11) relay { # Relay name name = "Timmy Foundation Sovereign Relay" # Relay description description = "Sovereign Nostr relay for the Wizardly Council. Local-first, owned infrastructure." # Relay URL url = "wss://relay.alexanderwhitestone.com" # Contact email/npub contact = "npub1timmyfoundation" # Supported NIPs nip = [1, 2, 4, 9, 11, 28, 40, 42, 50] # Software software = "strfry" # Software version version = "1.0.0" } # Event filtering and policies filter { # Maximum size of event content (bytes) maxEventSize = 65536 # Maximum number of tags per event maxNumTags = 2000 # Maximum size of a single tag (bytes) maxTagValSize = 1024 # Maximum size of filter query (bytes) maxFilterSize = 65536 # Maximum number of subscriptions per client maxSubsPerClient = 20 # Maximum number of filters per subscription maxFiltersPerSub = 10 # Limit on returned events per filter (0 = no limit) limit = 5000 } # Event storage configuration events { # Maximum size of event store (MB, 0 = unlimited) maxSize = 0 # Maximum age of events (seconds, 0 = unlimited) maxAge = 0 # Minimum POW difficulty for events (0 = no minimum) minPow = 0 } # Logging configuration logging { # Log level: debug, info, warn, error level = "info" # Log to file instead of stdout # file = "/var/log/strfry.log" } # Plugin configuration (for advanced filtering) # plugin = "/path/to/plugin"