fix(home-assistant) Dynamically set trusted proxies (#5846)
* fix(home-assistant) fix home-assistant subnet * use a better way for trusted proxies * replace else with a dynamic list instead of hardcoded Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
@@ -34,6 +34,9 @@ initContainers:
|
||||
# # When hostNetwork is true set dnsPolicy to ClusterFirstWithHostNet
|
||||
# dnsPolicy: ClusterFirstWithHostNet
|
||||
|
||||
homeassistant:
|
||||
trusted_proxies: []
|
||||
|
||||
# Enable a prometheus-operator servicemonitor
|
||||
prometheus:
|
||||
serviceMonitor:
|
||||
@@ -138,8 +141,13 @@ configmap:
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
trusted_proxies:
|
||||
- 172.16.0.0/16
|
||||
|
||||
{{- if hasKey .Values "ixChartContext" }}
|
||||
- {{ .Values.ixChartContext.kubernetes_config.cluster_cidr }}
|
||||
{{- else }}
|
||||
{{- range .Values.homeassistant.trusted_proxies }}
|
||||
- {{ . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
postgresql:
|
||||
enabled: true
|
||||
postgresqlUsername: home-assistant
|
||||
|
||||
Reference in New Issue
Block a user