cameri / nostream

A Nostr Relay written in TypeScript
MIT License
729 stars 188 forks source link

[REQUEST] Whitelist based on a .well-known/nostr.json #250

Closed anotherhadi closed 1 week ago

anotherhadi commented 1 year ago

Is your feature request related to a problem? Please describe. I want to whitelist all public keys found on mydomain/.well-known/nostr.json

Describe the solution you'd like An option in the settings.yaml file would be great, with the url to search for the nostr.json file. It will also be nice to set a "refresh_whitelist" key, so every X hours the whitelist will be updated with a get request the domain/.well-known/nostr.json without restarting the container.

Describe alternatives you've considered I tried changing the TS code myself but couldn't locate where the settings.yaml file loads.

Additional context Giving sats to people who can help me do this/implement the feature!