[gemini] Implement POST /api/relay/policy endpoint (#46) #99
Reference in New Issue
Block a user
Delete Branch "gemini/issue-46"
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?
Fixes #46
This PR implements the POST /api/relay/policy endpoint in the API server. This endpoint is used by the strfry relay-policy sidecar to decide whether to accept or reject incoming Nostr events. Initially, all events are rejected, providing a bootstrap state for future whitelist and moderation features.
Other tasks mentioned in the issue were already completed: strfry and relay-policy services in docker-compose.yml, strfry.conf configuration, and relay-policy sidecar implementation in index.ts, and ops.sh helpers.