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

[REQUEST] Update Documentation about RELAY_PRIVATE_KEY #209

Open
pgerstbach opened this issue Feb 16, 2023 · 2 comments
Open

[REQUEST] Update Documentation about RELAY_PRIVATE_KEY #209

pgerstbach opened this issue Feb 16, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@pgerstbach
Copy link

Is your feature request related to a problem? Please describe.
It is unclear how to configure a paid relay so that it sends out the PNs with the invoice.

Describe the solution you'd like
Update documentation accordingly.

Describe alternatives you've considered
Without documentation I have tried the following. This might help to see what I was understanding based on the existing documentation:

  • I set a secret in docker-compose.yml (and I can read it using docker exec <container-id> printenv SECRET)
  • I assumed that a private key is generated automatically, because RELAY_PRIVATE_KEY default value is (auto-generated), however docker exec <container-id> printenv RELAY_PRIVATE_KEY returns nothing.
  • Next assumption was that I might have to create a keypair myself, which seems to be the solution, but it is not obvious!

Thanks!

@pgerstbach pgerstbach added the enhancement New feature or request label Feb 16, 2023
@pgerstbach pgerstbach changed the title [REQUEST] [REQUEST] Update Documentation about RELAY_PRIVATE_KEY Feb 16, 2023
@jilv220
Copy link

jilv220 commented Feb 18, 2023

Is it the SECRET variable now? I am also confused.

@pgerstbach
Copy link
Author

It was explained by @cameri in Nostream-Telegram Group:
https://t.me/nostream_dev/4586

Ricardo Arturo, [16.02.2023, 14:38:32]:

  • generate a private key with your favorite nostr client
  • convert the nsec to hex securely (relays can't use nsec or npubs)
  • then on your docker-compose.yml file, add a new environment variable called RELAY_PRIVATE_KEY and set it to the private key in hex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants