Added 400 Bad Request error to HomeAssistant quick fix
This commit is contained in:
parent
4b8b619b55
commit
7e96257c93
@ -24,11 +24,21 @@
|
|||||||
<h1>HomeAssistant not connecting over reverse proxy</h1>
|
<h1>HomeAssistant not connecting over reverse proxy</h1>
|
||||||
<br>
|
<br>
|
||||||
<p>
|
<p>
|
||||||
Make sure you have enabled <em>Websockets Supports</em> or similar functionality in your reverse proxy client.
|
Make sure you have enabled <em>Websockets Supports</em> or similar functionality in your reverse proxy client.<br><br>
|
||||||
|
If you are getting a <em>400 Bad Request</em> error, find the HomeAssistant log file and look for the following error message:<br>
|
||||||
|
<code>A request from a reverse proxy was received from 12.34.56.78, but your HTTP integration is not set-up for reverse proxies</code><br><br>
|
||||||
|
In your <code>configuration.yaml</code> file, add the following lines:<br>
|
||||||
|
<pre style="text-align:left;">
|
||||||
|
http:<br>
|
||||||
|
use_x_forwarded_for: true<br>
|
||||||
|
trusted_proxies:<br>
|
||||||
|
- 12.34.56.78 # The IP address from the error message
|
||||||
|
</pre>
|
||||||
</p>
|
</p>
|
||||||
<h2>Explanation</h2>
|
<h2>Explanation</h2>
|
||||||
<p>
|
<p>
|
||||||
HomeAssistant uses websockets to communicate with the browser.
|
HomeAssistant uses websockets to communicate with the browser.<br><br>
|
||||||
|
If you are using a reverse proxy, the IP address of the incoming connection is not trusted and gets rejected by HomeAssistant.<br>
|
||||||
</p>
|
</p>
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user