brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: let Home Assistant accept your reverse proxy under trusted proxies

Home Assistant
~/tips/tip-ha-trusted-proxies

Trust X-Forwarded-For: on

Fixes requests being blocked when Home Assistant sits behind a proxy.

Put Home Assistant behind a reverse proxy and the first visit often fails, even though the proxy itself works. Home Assistant blocks forwarded requests from proxies it hasn’t been told to trust.

Since release 2026.8 the web server settings live in the interface instead of configuration.yaml:

Settings > System > Network > HTTP server
Trust X-Forwarded-For: on
Trusted proxies: 192.0.2.10

Enter the address your proxy uses to reach Home Assistant. With a Docker network that may be a whole range, in which case give the network address, such as 192.0.2.0/24, and not a host address with a mask stuck on.

Saving restarts Home Assistant. Afterwards an administrator is asked to confirm the new settings, and if nobody does within five minutes it rolls back to the previous ones. That safety net has my full approval, since a typo here could otherwise lock you out.

If you still have an old http: block in your YAML, it gets imported once. Check the values in the interface, delete the block and restart, or you’ll see a repair notice saying the YAML is ignored.

Keep the trusted list as narrow as you can. Everything on it is allowed to claim which client address a request came from, and bans and logs rely on that claim. Trusting your entire LAN is convenient and a lot more generous than needed.

Further reading: Home Assistant HTTP integration

Going deeper: Guide: fix a 502 Bad Gateway in Nginx Proxy Manager, with a checklist that finds the cause

More Home Assistant tips Unlimited login attempts: off automation: sequence: template: enabled: false All Home Assistant tips (11) All topics

Link