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

LNbits: LNURLp not working #3264

Open
rene78 opened this issue Jul 31, 2022 · 14 comments
Open

LNbits: LNURLp not working #3264

rene78 opened this issue Jul 31, 2022 · 14 comments
Assignees

Comments

@rene78
Copy link
Contributor

rene78 commented Jul 31, 2022

I have set up a LNURLp link in LNbits but somehow I am not able to send any funds to this link. Tried to send with BlueWallet, Zeus and RaspiBlitz WebUI. The invoice format seems to be wrong.

image

v1.8.0
over Tor

@rene78
Copy link
Contributor Author

rene78 commented Jul 31, 2022

Maybe somehow related to #3129?

@rootzoll
Copy link
Collaborator

rootzoll commented Aug 3, 2022

@fusion44 can you take a look for the LNbits team whats the problem here?

@callebtc
Copy link

callebtc commented Aug 4, 2022

Hey @rene78, please paste the LNURL here so we can check.

@rene78
Copy link
Contributor Author

rene78 commented Aug 4, 2022

Sure!
LNURL1DP68GURN8GHJ7VFEXGHRZD3C9CCZUDFC8G6NQVP39AKXUATJD3CZ7CTSDYHHVVF0D3H82UNV9UCSFF4YH7
image
Those are my settings, if it matters at all:
image

@callebtc
Copy link

callebtc commented Aug 4, 2022

The LNURL decodes to a local address which can't be reached from outside: https://192.168.0.58:5001/lnurlp/api/v1/lnurl/1

How was this usually solved with the RaspiBlitz @rootzoll or @fusion44? Should this be an onion address?

@rene78 do you use any DNS service to reach your node from the internet?

@rene78
Copy link
Contributor Author

rene78 commented Aug 4, 2022

@rene78 do you use any DNS service to reach your node from the internet?

No DNS, I use TOR to access apps like "Ride The Lightning".

@rene78 rene78 changed the title LNbits LNURLp not working LNbits: LNURLp not working Aug 4, 2022
@rootzoll
Copy link
Collaborator

How was this usually solved with the RaspiBlitz @rootzoll or @fusion44? Should this be an onion address?

This is normally solved by adding a IP2Tor service with LNbits - so that it can be a Letsencrypt-HTTPS reachable from the outside. To retest & improve those options will get more focus again with v1.8.2 release.

@rootzoll rootzoll added this to the 1.8.2 Release milestone Aug 10, 2022
@ChuckNorrison
Copy link
Contributor

ChuckNorrison commented Oct 9, 2022

Found this error in my lnbits journal if i try to create a new lnurlp link.

sqlite3.OperationalError: table lnurlp.pay_links has no column named fiat_base_multiplier

Iam not using TOR, clearnet only. This looks like a version incompatibility with my existent database.

Fixed my outdated sqlite database here
lnbits/lnbits#1047

@Dehumanizer77
Copy link

I have the same problem. I have my node running on an internal network and I have a reverse proxy set up on my router which listens on clearnet IP and proxies it to lnbits on raspiblitz. However when creating a LNURL, it encodes the internal IP address into the LNURL, thus making the lnurl invalid for the outside world. If there was a way how to specify the base URL for lnurl, it would solve the problem, but I'm not sure if that is possible...

@Dehumanizer77
Copy link

Ok, for anyone with the similar problem, just use

  RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
  RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
  ProxyPreserveHost On

in the reverse proxy config for apache, or

    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;

for nginx.
Then it works.

@rootzoll
Copy link
Collaborator

@fusion44 check if still relevent

@geco91
Copy link
Contributor

geco91 commented Jun 3, 2024

recommend to push to v1.11.2

rootzoll added a commit that referenced this issue Oct 1, 2024
@rootzoll
Copy link
Collaborator

rootzoll commented Oct 1, 2024

Adding nginx headers adjustments for RaspiBlitz v1.11.3 - will retest in later release when focus on networking again.

@rootzoll
Copy link
Collaborator

rootzoll commented Oct 2, 2024

Had to remove nginx headers adjustments for RaspiBlitz v1.11.3 again because they made problems:

lnbits_ssl.conf
       # Set headers to preserve original scheme and host
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Real-IP $remote_addr;

To be revisited later again.

rootzoll added a commit that referenced this issue Oct 4, 2024
…4768)

* #4568 add missing dependencies for AMD64
* Update: LNbits 0.12.11
* #4765 add check postgres installed check
* #3264 add nginx header adjustments
* Fix postgres bats test (#4769)
* #4204 move .env to data disc
* letsencrypt takes care of selfsigned certs
rootzoll added a commit that referenced this issue Oct 4, 2024
…4768)

* #4568 add missing dependencies for AMD64
* Update: LNbits 0.12.11
* #4765 add check postgres installed check
* #3264 add nginx header adjustments
* Fix postgres bats test (#4769)
* #4204 move .env to data disc
* letsencrypt takes care of selfsigned certs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants