My nginx was disconnecting clients after 60 seconds. That's because I ignored setting from the README.
I went for the NIP-42 approach. Made two upstream PRs for that, but at least it works locally now.
https://github.com/scsibug/nostr-rs-relay/pull/215
https://gitlab.com/soapbox-pub/mostr/-/merge_requests/117
nostr.oxtr.devquoting note1xmu…8rq2I'm mostly down to issues (1) and (3).
I can't tell if my relay is unreliable, if clients don't always send events to it, or if the Mostr connection silently breaks. Will need to do more debugging.
For whitelisting (one freshly created npub per fediverse user) I have three ideas:
i) have the relay do nip-05 verification (but there's a chicken-egg where it rejects the kind 0 even which it needs to verify the pubkey)
ii) just add localhost / 127.0.0.1 to the whitelist (made a feature request)
iii) give mostr a random private key, whitelist that on the relay and then use nip42 (opened an issue to figure out how to implement that) note1n75…74jz