getAlby / nostr-wallet-connect

Nostr Wallet Connect (NIP-47) application to allow apps to connect to your node
https://nwc.getalby.com
Apache License 2.0
105 stars 31 forks source link

Unable to use other relays #150

Open bleetube opened 1 year ago

bleetube commented 1 year ago

I might just be missing a step, but I haven't been able to get this working with any other relay than the default wss://relay.getalby.com/v1.

Steps to reproduce

  1. change RELAY environment variable to a different relay (tried nostr.munitywallet.com, offchain.pub, bitcoiner.social)
  2. restart nostr-wallet-connect
  3. disconnect old app connection in the nostr-wallet-connect webui
  4. generate a new connection in nostr-wallet-connect webui
  5. import the new connection to amethyst via qrcode
  6. zap fails, daemon log doesn't show any new events being seen

Any advice?

horologger commented 10 months ago

I've been able to change the RELAY on NWC 0.4.1 and have packaged it with a configuration that allows just this. Only for Start9, not Umbrel at this time. Find it on the Alpha registry https://alpha-registry-x.start9.com/

frnandu commented 9 months ago

try to set PUBLIC_RELAY also

rolznz commented 9 months ago

Note: PUBLIC_RELAY is only needed if RELAY is set to an internal IP for communication between the NWC app and the NWC relay. So it is not normally needed to be set.

bleetube commented 9 months ago

@horologger Are you sure about that? I gather the relevant config file you're referencing is docker_entrypoint.sh. afaict you're just using the alby relay.