github-tijlxyz / khatru-pyramid

A nostr relay with a invite hierarchy
The Unlicense
24 stars 5 forks source link

Unable to invite first user #4

Closed pbmarcano closed 6 months ago

pbmarcano commented 6 months ago

Trying to setup this relay with the docker image.

When I'm inviting the first user and I get a 500 error POSTing to /add-to-whitelist

Screenshot 2024-04-12 at 12 04 15 AM

Response says:

failed to add to whitelist: pubkey <my pubkey> doesn't have permission to invite

I declared my pubkey in the environment variable RELAY_PUBKEY

Am i missing something else during setup?

pbmarcano commented 6 months ago

scratch that. found the issue.

I had loaded an empty users.json file ({}) which left me without permissions on my own relay.

removing that volume and file seems to have done the trick