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

Open web UI breaks when on remote #2175

Open
Ten0 opened this issue Dec 11, 2024 · 3 comments
Open

Open web UI breaks when on remote #2175

Ten0 opened this issue Dec 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Ten0
Copy link

Ten0 commented Dec 11, 2024

What happened?

Clicking "Open WEB UI" when connected remotely does not work: it tries to open http://<my-url>:5050/ but when connected remotely (DDNS and exposed HA on HTTPS), I don't necessarily have that NAT-ed.
In fact, I don't want to NAT this, because there's no authentication on there so it clearly can't be opened to outside.

There is demand for this to work: https://community.home-assistant.io/t/solved-unable-to-connect-to-web-ui/134193/6

My understanding is that HomeAssistant has a feature called "Ingress" that enables exposing the web UI as an iframe within Home Assistant:

Then one should bind to the ingress port instead of to a fully exposed port, and it would:

  1. work
  2. be more secure (because it would now be authenticated by HomeAssistant instead of being exposed without authentication on the local network)

Version

4.4.2

Installation type

Home Assistant add-on (0.16.7)

(Not sure if maybe I should have opened this on https://github.com/hassio-addons/repository instead but that repository seems maybe a bit too general and it looks like a change might need to happen here as well although I'm not sure.)

Solving

(Updated after discussions below)

For ingress:

The application needs to support being served from a path, i.e. /somefolder/mypath. This can be a challenge for apps which assume everything is served from root (i.e. Javascript/asset loads etc)

Making the app work that way would then allow using the ingress feature.

@Ten0 Ten0 added the bug Something isn't working label Dec 11, 2024
@acockburn
Copy link
Member

acockburn commented Dec 11, 2024 via email

@Ten0
Copy link
Author

Ten0 commented Dec 11, 2024

Thanks, opened hassio-addons/repository#700

@Ten0 Ten0 closed this as completed Dec 11, 2024
@Ten0
Copy link
Author

Ten0 commented Dec 12, 2024

As it turns out this is a limitation of the way the webapp is built here, so reopening.

hassio-addons/repository#700 (comment)

The application needs to support being served from a path, i.e. /somefolder/mypath. This can be a challenge for apps which assume everything is served from root (i.e. Javascript/asset loads etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants