lnbits / lnurlp

MIT License
9 stars 8 forks source link

LNURLp isn’t reachable behind tor (not working), while LNbits works with the same nginx configuration. #16

Closed n-e-t-d-i-v-e-r closed 1 year ago

n-e-t-d-i-v-e-r commented 2 years ago

Hi there

Don’t know if the issue is on my side or not. But I installed LNbits on my Raspibolt and everything went well so far. But if I’ll send Sats to an LNURLp-address into my wallet i get following error. Can anybody help me?

arcbtc commented 2 years ago

Where is the error?

bezysoftware commented 2 years ago

Looks like you're running your LNBits behind Tor where WoS cannot access it. You would need to expose it via HTTPS

n-e-t-d-i-v-e-r commented 2 years ago

@bezysoftware yes, it looks like, but to be honest i have no plan how to expose LNURLp via HTTPS. it’s strange but I can access LNbits behind tor at the moment and send sats to my LNbits wallet but not to LNURLp. maybe the title of this «issue» is wrong. should be something like: «I can access LNbits wallet behind tor but not LNURLp ...» :O)

n-e-t-d-i-v-e-r commented 2 years ago

meanwhile I found the reason why LNbits is reachable from outside and LNURLp not. It’s in the /etc/nginx/streams-enabled/lnbits-reverse-proxy.conf:

upstream lnbits { server 127.0.0.1:5000; } server { listen 4002 ssl; proxy_pass lnbits; }

so my question now is. is there any related file for LNURLp, where I can insert such a server rule? and if yes, where will I find this and how should look the code to paste in ...?

callebtc commented 2 years ago

This is an nginx proxy issue, not an LNbits issue, correct?

n-e-t-d-i-v-e-r commented 2 years ago

not sure. from my point of view it is a somewhere wrong config. can’t say if it’s on LNURLp or on nginx side. fact is, with the above pasted lnbits-reverse-proxy.conf configuration LNbits works behind tor but LNURLp not and I got this configuration from the LNbits installation manual. so maybe it’s a LNURLp issue and not an LNbits issue. if that’s so, am I wrong here?

maybe it’s related with this, but I’m not sure how to solve this within my environment: https://github.com/lnbits/lnbits-legend/issues/86

anyway, seems I’m not the only one with this issue.

n-e-t-d-i-v-e-r commented 1 year ago

the issue is that phoenix wallet can’t handle LNurl. because of that I close this ticket