I’m trying to access the ESPHome dashboard over TLS so I can flash to locally connected devices. I have ESPHome running in a container, and Nginx Proxy Manager running in a container on a separate host (I need to go through the other host for various reasons).
The dashboard loads fine, but any command I try fails. In the browser I see:
WebSocket connection to 'wss://<npm_host>:<npm_port>/logs' failed
And the logs for the esphome container show:
WARNING 403 GET /logs (<npm_host_ip>) 1.48ms
When access directly through http://<esp_host_ip>:6052/ everything is working normally.
Well, that’s my question
What do I need to set for the proxy to work? Note that the dashboard is loading, it’s just websockets that aren’t working (NPM is configured to support websocket, and the logs show that it does reach ESPHome).
No, I’m not using a relative URL and I’m not using the builder. I have ESPHome running in a docker container on a separate host, and served at the root.
As far as I know there are only the ESPHome integration that gets installed in the HA core and then the ESPHome Builder.
No idea what you are talking about then.
I don’t want to get into a semantic argument here, because ESPHome in itself is inconsistent with terms. The addon is running a docker container, and you can run that container independently. leave_front_door_open is an addon configuration - it applies to HA authentication. I believe relative_url is an addon configuration as well, but it doesn’t matter because I’m not using a relative URL and authentication is currently turned off.
The doc I linked to described how to run the dashboard in a docker container, and links to a command line reference that details the command line parameters to the container. Neither leave_front_door_open nor relative_url are documented in either page.