From bb154455e278c0c06d28debedf4a65cb0fe2b1da Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 31 May 2022 23:43:33 +0700 Subject: [PATCH] Tweak home-assistant config for reverse proxy --- home-assistant/configuration.yaml.template | 6 ++++++ home-assistant/docker-compose.yml | 1 + 2 files changed, 7 insertions(+) create mode 100644 home-assistant/configuration.yaml.template diff --git a/home-assistant/configuration.yaml.template b/home-assistant/configuration.yaml.template new file mode 100644 index 0000000..6fc7dd3 --- /dev/null +++ b/home-assistant/configuration.yaml.template @@ -0,0 +1,6 @@ +default_config: + +http: + use_x_forwarded_for: true + trusted_proxies: + - $NETWORK_IP/16 \ No newline at end of file diff --git a/home-assistant/docker-compose.yml b/home-assistant/docker-compose.yml index fda049b..fa538c1 100644 --- a/home-assistant/docker-compose.yml +++ b/home-assistant/docker-compose.yml @@ -10,6 +10,7 @@ services: image: homeassistant/home-assistant:2021.12.0@sha256:116f78d5cf48c4b1adcb3eb665885cb0d14dc0156e9291015ca6fbce13540ff5 volumes: - ${APP_DATA_DIR}/data:/config + - ${APP_DATA_DIR}/configuration.yaml:/config/configuration.yaml networks: default: ipv4_address: $APP_HOME_ASSISTANT_IP