NextPay icon indicating copy to clipboard operation
NextPay copied to clipboard

WEB_URL is not used

Open dykstranet opened this issue 4 years ago • 4 comments

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`.

dykstranet avatar Oct 01 '21 09:10 dykstranet

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

apotdevin avatar Oct 07 '21 12:10 apotdevin

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.

breez_scaled_screenshot_20211008-141219_breez

dykstranet avatar Oct 08 '21 06:10 dykstranet

Just thought of this question as well: Why is the WEB_URL necessary in the .env file if it is not used?

Thanks!

dykstranet avatar Oct 08 '21 06:10 dykstranet

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.

lightning_address_scaled_screenshot_20211008-142237_bluewallet

dykstranet avatar Oct 08 '21 06:10 dykstranet