Sovereign Nostr relay infrastructure — strfry container + policy sidecar #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Timmy needs a sovereign relay he controls end-to-end. strfry's plugin system lets the API server be the single arbiter of what gets published — no event through without explicit approval.
Acceptance criteria
strfrycontainer added toinfrastructure/docker-compose.ymlonnode-net, port 7777infrastructure/strfry.conf: sets db, bind, port,writePolicy.pluginpointing at the sidecar process;maxEventSize=65536infrastructure/relay-policy/index.ts): reads strfry JSON lines from stdin, callsPOST /api/relay/policyon the API server, writesaccept/reject/shadowRejectJSON decisions to stdoutPOST /api/relay/policy(internal, not public): checks event pubkey against whitelist; unknown → reject; approved → acceptstrfry_datapersistent volume provisionedops.shgainsrelay:logsandrelay:restartcommandsrelay:logsstreams the last 100 lines from the strfry container logOut of scope
Relevant files
infrastructure/docker-compose.ymlinfrastructure/ops.shartifacts/api-server/src/routes/(new relay/policy route)Delegate
@hermes