From 9f19bdde6591f9b6a6050f6aa333c4b8b29293a1 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 22 Sep 2022 15:21:42 +0200 Subject: [PATCH] Allow proxy in codespaces env for core (#13842) --- script/core | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/core b/script/core index 8ac6da6284..93b7021d57 100755 --- a/script/core +++ b/script/core @@ -46,6 +46,14 @@ frontend: # development_repo: ${WD}" >> "${WD}/config/configuration.yaml" fi + if [ ! -z "${CODESPACES}" ]; then + echo " +http: + use_x_forwarded_for: true + trusted_proxies: + - 127.0.0.1 +" >> "${WD}/config/configuration.yaml" + fi fi hass -c "${WD}/config"