(fix) view cluster as trusted proxy for Home Assistant (#1131)

This commit is contained in:
Kjeld Schouten-Lebbing
2021-10-13 15:14:54 +02:00
committed by GitHub
parent cf9028e872
commit c0bd0701c5
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -29,4 +29,4 @@ sources:
- https://github.com/home-assistant/home-assistant
- https://github.com/cdr/code-server
type: application
version: 8.1.3
version: 8.1.4
@@ -15,10 +15,16 @@ data:
else
cat /config/init/recorder.default >> /config/configuration.yaml
fi
if grep -q http: "/config/configuration.yaml"; then
echo "configuration.yaml already contains http section"
else
cat /config/init/http.default >> /config/configuration.yaml
fi
else
echo "configuration.yaml does NOT exist."
cp /config/init/configuration.yaml.default /config/configuration.yaml
cat /config/init/recorder.default >> /config/configuration.yaml
cat /config/init/http.default >> /config/configuration.yaml
fi
configuration.yaml.default: |-
# Configure a default setup of Home Assistant (frontend, api, etc)
@@ -39,6 +45,11 @@ data:
purge_keep_days: 30
commit_interval: 3
db_url: {{ ( printf "%s?client_encoding=utf8" ( .Values.postgresql.url.complete | trimAll "\"" ) ) | quote }}
http.default: |-
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.16.0.0/16
{{- end -}}