I’m working on incorporating the ingress capability of Home Assistant into an add-on that utilizes a websocket. The challenge is that the web application expects a base URL of / but the Home Assistant ingress feature uses a base URL of /api/hassio_ingress//. The web application utilizes a websocket at /live. I’ve setup NGINX to provide the necessary proxying and filtering in order to dynamically modify the URL references in the web application. This seems to work well for the main page, but there are two secondary pages that don’t work. When I look at the Messages for the websocket in the developer tools, I see that the websocket is sending a phx_reply with a “join crashed” error.
At this point, I’m hoping someone might have some ideas as to why it might work on the main page but not on the secondary pages.