NextPay
NextPay copied to clipboard
WEB_URL is not used
Thanks for your work creating NextPay. Looking forward to using it. I just have a small snag.
Describe the problem/bug
I specified my public domain name in the WEB_URL variable in .env file. But this is what I get when I do yarn start
next start -p 3002
ready - started server on 0.0.0.0:3002, url: http://localhost:3002
info - Loaded env from /home/server/NextPay/.env
I edited package.json's script.start to be next start -p 3002 because port 3000 is already used by ThunderHub.
Your environment
- Version of NextPay: 0.1.0
- Deployment method:
yarn - Other relevant environment details: Ubuntu 20.04
Expected behavior
The url should have been https://my.domain.com. (I do a reverse proxy from my.domain.com to localhost port 3002.
Actual behavior The url is http://localhost:3002`.
Hey! This is correct, the server is running on localhost:3002. If you are reversing proxying the domain to that localhost url it should work
Hi. Thanks @apotdevin . So the lnurl encoded in the QR code is giving the pictured error in Breez wallet. You can see that the domain name is localhost:3002 but should be our public domain name. We already do reverse proxy for the NextPay server.

Just thought of this question as well: Why is the WEB_URL necessary in the .env file if it is not used?
Thanks!
This may help understand what is happening. Here is a Bluewallet error screenshot in attempt to pay to lightning address. You can see that the domain URL is not coming through. Only localhost.
