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