nostream icon indicating copy to clipboard operation
nostream copied to clipboard

[BUG] Nip-11 seems to be served on root domain, not on relay_url

Open MegalithicBTC opened this issue 11 months ago • 0 comments

Feel free to close this if I'm confused.

The NIP-11 spec (https://github.com/nostr-protocol/nips/blob/master/11.md#relay-information-document ) ... says that...

Relays may provide server metadata... This is made available as a JSON document over HTTP, on the same URI as the relay's websocket. )

Operative text here is "on the same URI as the relay's websocket"

So I THINK that means if my relay_url is set to...

wss://mydomain.com/v1

Then the Nip-11 data should be accessible like ....

curl -i   -H "Accept: application/nostr+json"   https://some-domain.com/v1

But so far I am finding this not to be the case with Nostream. The Nip-11 data is instead accessible on the ROOT of the domain

curl -i   -H "Accept: application/nostr+json"   https://some-domain.com

MegalithicBTC avatar Feb 12 '25 03:02 MegalithicBTC