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
|
# # When hostNetwork is true set dnsPolicy to ClusterFirstWithHostNet
|
||||||
# dnsPolicy: ClusterFirstWithHostNet
|
# dnsPolicy: ClusterFirstWithHostNet
|
||||||
|
|
||||||
|
homeassistant:
|
||||||
|
trusted_proxies: []
|
||||||
|
|
||||||
# Enable a prometheus-operator servicemonitor
|
# Enable a prometheus-operator servicemonitor
|
||||||
prometheus:
|
prometheus:
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
@@ -138,8 +141,13 @@ configmap:
|
|||||||
http:
|
http:
|
||||||
use_x_forwarded_for: true
|
use_x_forwarded_for: true
|
||||||
trusted_proxies:
|
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:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
postgresqlUsername: home-assistant
|
postgresqlUsername: home-assistant
|
||||||
|
|||||||
Reference in New Issue
Block a user