Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MegalithicBTC opened this issue Feb 12, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@MegalithicBTC
Copy link

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 MegalithicBTC added the bug Something isn't working label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants