question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HA ingress won't work with static built web ui

See original GitHub issue

Looks like due to Home Assistant changing the pathname / baseUrl of accessing the HTTP web ui, the paths are broken.

eg: HA ingress uses a path like /api/hassio_ingress/phGvaecS8O1W86zsjRe23F93S-9gU0bQNxv5xjP7ZXs/ and proxies that into the Web UI. Unfortunately, the statically built HTML expects the paths of the JS to be /js/..., but that means it’s attempting to load from the Home Assistant’s root /js folder and not the frigate docker container’s host:port/path.

Some other solution will be needed, like running another web server that can understand if it’s being run with ingress and changing the URLs to the built JS/CSS.

Alternatively, an nginx path could be added for /homeassistant, which could then serve a modified HTML file, though this may be just as much work to maintain, but harder to test and verify.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:31 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Jan 20, 2021

I think we should just update the UI to pull the latest.jpg at an interval. From what I can tell, it’s going to take an update from homeassistant to get it to handle multipart content types properly. This is what happens when you try to build your own proxy.

1reaction
blakeblackshearcommented, Jan 20, 2021

Looks like ingress modifies the content type headers and breaks mjpeg.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration keys - HAProxy Ingress
Configuration key Data type Scope Default value acme‑emails email1,email2,… Global acme‑endpoint Global acme‑expiring number of days Global 30
Read more >
Dissecting the HAProxy Kubernetes Ingress Controller
This can be done by exposing the Ingress Controller as a Kubernetes service with either type NodePort or LoadBalancer. However, this time, when ......
Read more >
Set Up Load Balancer and Ingress Controller within Rancher
Learn how you can set up load balancers and ingress controllers to redirect service ... It can't be reached from outside the cluster....
Read more >
Ingress Controllers - Kubernetes
In order for an [Ingress](/docs/concepts/services-networking/ingress/) to work in your cluster, there must be an _ingress controller_ ...
Read more >
Ingress rules not working with static contents - Stack Overflow
I have 2 micro-services running on my EKS cluster which has nginx ingress controller setup. 1st Micro-service - ui-static (on port 3000) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found