Prerequisites
- You need access to the command line (or the HA CasaOS container)
- You need to have Sudo installed1
Using the command line
Sudo docker ps
Now search for a process with Home Assistant in the name and copy the container id
sudo docker logs [container_id]
Now search for: A request from a reverse proxy was received from [IP ADRESS], but your HTTP integration is not set-up for reverse proxies
sudo docker inspect <container_id>
Now Search for : “HostConfig”: {
“Binds”: [
“/etc/localtime:/etc/localtime:ro”,
“/run/dbus:/run/dbus:ro”,
“<YOUR PATH>”. This path will end in /config:/config:rw” YOU NEED TO CHANGE IT TO config/configuration.yaml
Sudo nano <Your Path>
This should open a config file. Write at the bottom:
http:
use_x_forwarded_for: true
trusted_proxies:
– [YOUR IP]
– 172.16.0.0/12
To save: ctrl+O <enter> ctrl+X
Now restart Home Assistant or your entire system
Using CasaOS
Go to the settings of Home Assistant and click on logs2
Now search for: A request from a reverse proxy was received from <IP ADRESS>, but your HTTP integration is not set-up for reverse proxies
Now go to the Filebrowse in the config of Home Assistant and open configuration.yaml.3 This should open a config file. Write at the bottom:
http:
use_x_forwarded_for: true
trusted_proxies:
– [YOUR IP]
– 172.16.0.0/12
To save: ctrl+O <enter> ctrl+X
Now restart Home Assistant
- To install Sudo you may follow this guide ↩︎
- See this image for help. ↩︎
- Often located at /DATA/AppData/big-bear-home-assistant/config/configuration.yaml ↩︎