From 7e96257c93b55b00a99cb241363a138cec71d0d0 Mon Sep 17 00:00:00 2001
From: jolzem
- Make sure you have enabled Websockets Supports or similar functionality in your reverse proxy client.
+ Make sure you have enabled Websockets Supports or similar functionality in your reverse proxy client.HomeAssistant not connecting over reverse proxy
+ If you are getting a 400 Bad Request error, find the HomeAssistant log file and look for the following error message:
+ A request from a reverse proxy was received from 12.34.56.78, but your HTTP integration is not set-up for reverse proxies
+ In your configuration.yaml
file, add the following lines:
+
+http:
+ use_x_forwarded_for: true
+ trusted_proxies:
+ - 12.34.56.78 # The IP address from the error message
+
- HomeAssistant uses websockets to communicate with the browser.
+ HomeAssistant uses websockets to communicate with the browser.
+ If you are using a reverse proxy, the IP address of the incoming connection is not trusted and gets rejected by HomeAssistant.