raspiblitz / raspiblitz-web

A mobile-first responsive Web UI for the RaspiBlitz
MIT License
61 stars 21 forks source link

RaspiBlitz: 1.9.0 WebUI: 1.1.0 LNBits onion url misformed #630

Closed jalbstmeijer closed 1 year ago

jalbstmeijer commented 1 year ago

When on the onion url of RaspiBlitz, LNBits is linked as https://{raspiublitz_url}.onion/{lnbits_url}.onion instead of http://{lnbits_url}.onion

cstenglein commented 1 year ago

@rootzoll Looks at first look like the wrong url is in redis

For my install it looks the same in the installed_app_status message:

  {
    "id": "lnbits",
    "version": "0.10.6",
    "installed": true,
    "status": "online",
    "address": "https://<localurl>",
    "httpsForced": "1",
    "httpsSelfsigned": "1",
    "hiddenService": "<onionurl>.onion",
    "authMethod": "none",
    "details": {},
    "error": ""
  },
rootzoll commented 1 year ago

@cstenglein I dont see redis in play here. For me this looks like the WebUI is creating the wrong url formatting in the end.

The way it goes is: The API calls the script bonus.lnbits.sh status takes the toraddress from there and gives it out as the hiddenService for the lnbits app. And in your example above this looks correct. But when calling the WebUI thru TorBrowser with the WebUI-Onion, then going to the APP section and wanna opening lnbits - I also see a https://{raspiublitz_url}.onion/{lnbits_url}.onion style address which does not work.

rootzoll commented 1 year ago

@cstenglein BTW it seems to be the same for all apps (not just lnbits) when the WebUI running in TorBrowser that the "OPEN" link has that malforme.

cstenglein commented 1 year ago

@rootzoll thank you for clarifying, looks like I didn't understand the issue at first.

Got a fix ready, will push soon.