Skip to content

Commit fb49449

Browse files
authored
Merge pull request #738 from MetaCell/feature/CH-124
CH-124 add forwarded headers configuration
2 parents f64b165 + 170feed commit fb49449

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

deployment-configuration/helm/templates/ingress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ metadata:
4545
nginx.ingress.kubernetes.io/auth-keepalive-timeout: {{ .Values.proxy.timeout.keepalive | quote }}
4646
nginx.ingress.kubernetes.io/proxy-read-timeout: {{ .Values.proxy.timeout.read | quote }}
4747
nginx.ingress.kubernetes.io/proxy-send-timeout: {{ .Values.proxy.timeout.send | quote }}
48+
nginx.ingress.kubernetes.io/use-forwarded-headers: {{ .Values.proxy.forwardedHeaders | quote }}
4849
spec:
4950
rules:
5051
{{- range $app := .Values.apps }}

deployment-configuration/helm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ backup:
6868
# -- K8s cpu resource definition.
6969
cpu: "50m"
7070
proxy:
71+
# -- Set to false to hide remote client headers. Will hide the client IPs in all logs
72+
forwardedHeaders: true
7173
timeout:
7274
# -- Timeout for proxy connections in seconds.
7375
send: 60

docs/ingress-domains-proxies.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ To configure it, override the following values in your `deployment-configuration
5353

5454
```yaml
5555
proxy:
56+
# -- Set to false to hide remote client headers. Will hide the client IPs in all logs
57+
forwardedHeaders: true
5658
timeout:
5759
# -- Timeout for proxy connections in seconds.
5860
send: 60

0 commit comments

Comments
 (0)