Reverse Proxy Home Assistant (pangolin-newt-npm-hass)
Posted by Dioniso
Hi, Love the project. Got on some months ago but just now got fully hands on and geeky with it. 'simple question' for the broad community, did you manage to get home assistant behind nginx reverse proxy? This is my current situation: I'm using pangolin on a vps pointing, through newt, to npm which reverse proxies the containers (with ssl certs and so on). this setup works perfectly with jellyfin, but I can't for the love of me make it work with home assistant. When I try to connect to it through this route I get a black page, "no available server". I tired different setups but the problem seems to arise at the reverse proxy level (might be wrong, test suggestions are wellcome). I updated the homeassistant configuration.yaml to allow http connections (as per home assistant own documentation) but nothing changed. Does anyone use the same setup and managed to make it work or do you have any suggestion? thanks in advance :)
1 replies
Chris wrote:
Since Jellyfin works through the same chain, this is almost certainly a Home Assistant thing rather than SparkBox or your proxy setup. Home Assistant refuses connections that don't look like they're coming straight from a trusted address once it's behind a reverse proxy - and that shows up exactly as a blank 'no available server' page. In Home Assistant's own configuration.yaml, under the http: section, you need usexforwardedfor: true and trustedproxies listing your proxy's IP (not just allowing http, which you already did). That's the piece people usually miss. Give that a try and let us know.