Skip to content

Commit

Permalink
Update configmap-nginx.yaml (#171)
Browse files Browse the repository at this point in the history
* Update configmap-nginx.yaml

add config for nginx to get real ip from header if trusted proxies is set
real_ip_header X-Forwarded-For;
real_ip_recursive on;

* Update Chart.yaml
  • Loading branch information
sniper7kills authored Feb 3, 2023
1 parent 743cd5a commit 00b03f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion zammad/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: zammad
version: 8.0.2
version: 8.0.3
appVersion: 5.3.1-15
description: Zammad is a web based open source helpdesk/customer support system with many features to manage customer communication via several channels like telephone, facebook, twitter, chat and e-mails.
home: https://zammad.org
Expand Down
4 changes: 4 additions & 0 deletions zammad/templates/configmap-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ data:
client_max_body_size 50M;
{{- /* Trusted proxies */}}
{{ if .Values.zammadConfig.nginx.trustedProxies }}
{{ range .Values.zammadConfig.nginx.trustedProxies }}
set_real_ip_from {{ . }};
{{- end }}
real_ip_header X-Forwarded-For;
real_ip_recursive on;
{{- end }}
{{- if .Values.zammadConfig.nginx.knowledgeBaseUrl }}
{{ if hasPrefix "/" .Values.zammadConfig.nginx.knowledgeBaseUrl }}
Expand Down

0 comments on commit 00b03f4

Please sign in to comment.