cameri / nostream

A Nostr Relay written in TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

anotherhadi opened this issue · comments

commented

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!