2.1.1.2 Reverse Proxy
Now, if you want your home assistant to be reachable via URL or domain name then we need to jump into the configuration.yaml file inside the container. Assuming your container is called "home-assistant" we type in the following command inside the docker vm to jump inside the container
docker exec -it home-assistant /bin/bash
This will drop you inside the container as containter_number:/config#. We will then enter the configuration.yaml file with
vi configuration.yaml
Then you need to make sure that change your configuration file to this
# Loads default set of integrations. Do not remove.
default_config:
http:
use_x_forwarded_for: true
trusted_proxies:
- 10.56.4.1 #IP address of gateway or the VLAN network----> CHANGE THIS TO YOUR VALUES
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
It is clear that the http part is the one that is added. Adjust the values to your configuration and save the file. To start editing one would click on the letter "i". Make the edit. Once you are done hit ESC and then type the command ":wq" to write to it and quit. After that is done you should restart Home Assistant.