joshgaskin/nostpy-relay — reverse-engineered prompt
Reverse engineered prompt
Build me a portable Nostr relay I can deploy on an Ubuntu server with my own domain. I want it to run with docker compose, use Python for the relay services, store events in PostgreSQL, and use Redis so clients can publish and read notes quickly over websockets.
Please make it simple for a lightly technical person to operate. Include an env file example for the domain, contact email, admin public key, database passwords, ports, and optional monitoring key. Add a terminal menu that can install dependencies, start the relay, build the Web of Trust list, and optionally run the relay over both clearnet and Tor.
The relay should support the common Nostr basics like publishing, reading, deletes, encrypted DMs, reactions, search, contact lists, relay info, and classified listings. Add NGINX reverse proxy setup and TLS certificate handling. Include basic monitoring with OpenTelemetry if possible, plus clear README instructions for setup, daily Web of Trust updates, and where to find the Tor address.
Want more depth? Deep Reverse