Home assistant (400 Bad Request) Docker + Proxy - Solution

Thank you very much.

My configuration
HomeAssistant as a VM 192.168.1.43:8123
Ubuntu VM running Nginx docker 192.168.1.42 (force SSL)
Nginx has home.mydomain.net pointing towards 192.168.1.43

Nginx is configured to allow me to access https://home.mydomain.net internally. Recently I have been getting these 400 bad requests when trying internally or externally from WAN.

As mention in the first post by Kiwijunglist, there is a document from Home Assistant providing instructions on what to do.

The following is all I needed to do, and a reboot of course.

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.1.42

7 Likes